:root {
  --primary-color: #2a276b;
  --secondary-color: #6c63ff;
  --accent-color: #ff6584;
}

body {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background-image: url(/assets/img/textura.svg);
  background-size: cover;
  background-blend-mode: soft-light;
}

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 500px;
  width: 100%;
  margin: auto;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.3s ease;
  animation: cardEntrance 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a357d 100%);
  padding: 2.5rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.brand-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: rotate(45deg);
}

.brand-header h1 {
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 0.5rem;
  position: relative;
  font-size: 2.2rem;
}

.brand-header p {
  font-weight: 300;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

.form-section {
  padding: 2.5rem;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  display: block;
}

.btn-primary {
  background: var(--secondary-color);
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

.text-decoration-none {
  color: var(--primary-color);
  transition: all 0.3s ease;
  font-weight: 500;
}

.text-decoration-none:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.alert-success {
  border-radius: 12px;
  padding: 1rem 1.5rem;
  border: none;
  background: #e8f5e9;
  color: #2e7d32;
}

.alert-error {
  border-radius: 12px;
  padding: 1rem 1.5rem;
  border: none;
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.alert-error .fa-exclamation-triangle {
  color: #c62828;
}

.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translateX(-1px);
  }

  20%,
  80% {
    transform: translateX(2px);
  }

  30%,
  50%,
  70% {
    transform: translateX(-4px);
  }

  40%,
  60% {
    transform: translateX(4px);
  }
}

.is-invalid {
  border-color: #ff6584 !important;
  animation: shake 0.4s ease;
}
