

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 2rem;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--bg-primary);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.08);
}


.auth-logo {
  display: block;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 2rem;
}


.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.auth-header p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}


.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.auth-form-group input[type="email"],
.auth-form-group input[type="password"],
.auth-form-group input[type="text"],
.auth-form-group input[type="tel"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}


.auth-form-group input::placeholder {
  color: var(--text-muted);
}

.auth-form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}


.password-input-wrapper {
  position: relative;
}

.password-input-wrapper input {
  padding-right: 3rem;
}

.password-input-wrapper .toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-input-wrapper .toggle-password:hover {
  color: var(--text-secondary);
}


.input-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}


.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -0.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.remember-me input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.forgot-password {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.forgot-password:hover {
  text-decoration: underline;
}


.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.4;
}

.terms-checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.terms-checkbox a {
  color: var(--primary);
  text-decoration: none;
}

.terms-checkbox a:hover {
  text-decoration: underline;
}


.auth-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.auth-submit:hover {
  background: var(--cta-primary-hover);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0);
}


.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.auth-footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.auth-footer-alt {
  margin-top: 0.5rem !important;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}


.auth-container-wide {
  max-width: 480px;
}


.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}


.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.auth-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  border: 2px solid var(--border-default);
}

.auth-step.active .step-number {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.auth-step.completed .step-number {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.step-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.auth-step.active .step-label {
  color: var(--primary);
}

.auth-step-divider {
  width: 40px;
  height: 2px;
  background: var(--border-default);
  margin-bottom: 1.25rem;
}

.auth-step.completed + .auth-step-divider {
  background: var(--success);
}


@media (max-width: 30rem) {
  .auth-page {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 3rem;
  }

  .auth-card {
    padding: 1.75rem;
  }

  .auth-logo {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .auth-header h1 {
    font-size: 1.25rem;
  }

  .auth-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  
  .auth-form-row {
    grid-template-columns: 1fr;
  }

  
  .auth-steps {
    gap: 0.25rem;
  }

  .auth-step-divider {
    width: 24px;
  }

  .step-label {
    font-size: 0.5625rem;
  }

  .step-number {
    width: 24px;
    height: 24px;
    font-size: 0.6875rem;
  }
}

.auth-home-link {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.auth-home-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-home-link a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Language Switcher for Auth Pages */
.language-switcher-container {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.language-switcher-container .language-form {
  display: flex;
  align-items: center;
}

.language-switcher-container .language-select {
  appearance: none;
  background-color: white;
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  padding: 0.5rem 2rem 0.5rem 1rem;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 14px;
}

.language-switcher-container .language-select:hover {
  border-color: var(--primary);
}

/* Mobile responsive */
@media (max-width: 48rem) {
  .language-switcher-container {
      top: 0.5rem;
      right: 0.5rem;
  }
  
  .language-switcher-container .language-select {
      padding: 0.4rem 1.8rem 0.4rem 0.8rem;
      font-size: 0.8rem;
  }
}