/* Authentication Page Styles */
.auth-container {
  background: #fff;
  border: 1px solid rgba(2,6,23,0.06);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 2px 8px rgba(2,6,23,0.04);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #071325;
  margin: 0 0 8px;
}

.auth-subtitle {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 1rem;
}

.auth-explanation {
  margin-bottom: 12px;
}

.explanation-card {
  background: rgba(var(--brand-rgb), 0.05);
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  border-radius: 10px;
  padding: 16px;
  text-align: left;
}

/* Auth Steps */
.auth-step {
  margin-bottom: 24px;
}

/* Auth Alerts */
#auth-alerts {
  margin-bottom: 20px;
}

.auth-alert {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.auth-alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #1e40af;
}

.auth-alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #15803d;
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

.alert-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #071325;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(2,6,23,0.12);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.1);
}

.input-help {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(2,6,23,0.12);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(2,6,23,0.04);
  color: #071325;
}

/* Terms and Conditions Styles */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  margin: 0;
  transform: scale(1.1);
  accent-color: var(--brand);
}

.checkbox-container:hover {
  opacity: 0.9;
}

/* Terms content box */
.auth-step div[style*="background: #f8f9ff"] {
  transition: border-color 0.2s ease;
}

.auth-step div[style*="background: #f8f9ff"]:hover {
  border-color: rgba(var(--brand-rgb), 0.3) !important;
}

/* Marketing subscription box */
.auth-step div[style*="background: #f0f9ff"] {
  transition: all 0.2s ease;
}

.auth-step div[style*="background: #f0f9ff"]:hover {
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Button disabled state */
button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #e5e7eb !important;
  border-color: #e5e7eb !important;
  color: #9ca3af !important;
}

button[disabled]:hover {
  background-color: #e5e7eb !important;
  border-color: #e5e7eb !important;
  color: #9ca3af !important;
  transform: none;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-container {
    margin: 20px auto;
    padding: 32px 24px;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
  
  .checkbox-container {
    gap: 8px;
  }
  
  .checkbox-container span {
    font-size: 0.85rem;
  }
}

/* Resend Code Button Styles */
#resend-code {
  transition: all 0.2s ease !important;
}

#resend-code:hover {
  background: rgba(var(--brand-rgb), 0.15) !important;
  border-color: rgba(var(--brand-rgb), 0.3) !important;
  transform: scale(1.05);
}

#resend-code:active {
  transform: scale(0.95);
}

/* Loading state for resend button */
#resend-code.loading {
  opacity: 0.6;
  pointer-events: none;
}

#resend-code.loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}