:root {
  /* Colores de Minca */
  --minca-yellow: #FFD166;
  --minca-peach: #FFAB91;
  --minca-pink: #F48FB1;
  --minca-purple: #CE93D8;

  /* Colores neutros */
  --white: #FFFFFF;
  --black: #1a1a1a;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Gradiente principal */
  --gradient: linear-gradient(135deg, var(--minca-yellow) 0%, var(--minca-peach) 50%, var(--minca-pink) 100%);

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Container */
.auth-container {
  width: 100%;
  max-width: 420px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auth Box */
.auth-box {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
}

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo .logo-img {
  height: 40px;
  width: auto;
}

.logo h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

/* Títulos */
h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Mensajes */
.message {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.message.error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.message.success {
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #6EE7B7;
}

/* Form */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background: var(--white);
}

input:focus {
  outline: none;
  border-color: var(--minca-pink);
  box-shadow: 0 0 0 3px rgba(244, 143, 177, 0.1);
}

input::placeholder {
  color: var(--gray-400);
}

/* Form Footer */
.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.forgot-link {
  font-size: 0.875rem;
  color: var(--minca-pink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--minca-purple);
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 0.875rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--gradient);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--minca-pink);
  color: var(--minca-pink);
  transform: translateY(-2px);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--gray-200);
}

.divider span {
  padding: 0 1rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Google Button */
.btn-google {
  width: 100%;
  padding: 0.875rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-google:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-google svg {
  flex-shrink: 0;
}

/* Switch Link */
.switch-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.switch-link a {
  color: var(--minca-pink);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.switch-link a:hover {
  color: var(--minca-purple);
  text-decoration: underline;
}

/* Loading spinner */
.btn-primary.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .auth-box {
    padding: 2rem 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .logo h1 {
    font-size: 1.75rem;
  }
}

/* Auth Navigation Bar */
.auth-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.auth-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-nav-logo .logo-img {
  height: 32px;
  width: auto;
}

.auth-nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gray-100);
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.auth-nav-back:hover {
  background: var(--gradient);
  color: white;
}

.auth-nav-back i {
  width: 16px;
  height: 16px;
}

/* Adjust body for navbar */
body {
  padding-top: 80px;
  padding-bottom: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide duplicate logo when navbar is present */
.auth-nav+.auth-container .logo {
  display: none;
}

/* ===================================
   Footer Styles (Sync with index.css)
   =================================== */
.footer {
  background: linear-gradient(135deg, #0a2420 0%, #1a3432 100%);
  color: white;
  padding: 80px 3rem 30px;
  margin-top: 4rem;
  width: 100%;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: block;
  /* Reset grid from previous incorrect style */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-column h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--minca-peach);
  transform: translateY(-3px);
}

.footer-social i,
.footer-social svg {
  width: 18px;
  height: 18px;
  color: white;
  stroke: white;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--minca-peach);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.footer-disclaimer-text {
  font-size: 0.85rem !important;
  font-style: italic;
}

/* Responsive Footer */
@media (max-width: 968px) {
  .footer {
    padding: 60px 2rem 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}