/* Authentication Styles - Matches Photon Theme */

/* Auth Section */
.auth-section {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

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

/* Auth Card */
.auth-card {
  background: rgba(51, 65, 85, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 2.5rem;
  border: 1px solid var(--photon-border-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.auth-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--photon-primary) 0%, var(--photon-secondary) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--photon-text-primary);
  margin: 0 0 0.5rem;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--photon-text-muted);
  margin: 0;
  line-height: 1.5;
}

.auth-subtitle strong {
  color: var(--photon-primary);
}

/* Form Styles */
.auth-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--photon-text-secondary);
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--photon-text-muted);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  font-size: 1rem;
  color: var(--photon-text-primary);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--photon-border);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  outline: none;
}

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

.form-input:focus {
  border-color: var(--photon-primary);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

/* Code Input Styles */
.code-input-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.code-input {
  width: 3rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--photon-text-primary);
  background: rgba(30, 41, 59, 0.8);
  border: 2px solid var(--photon-border);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  outline: none;
}

.code-input:focus {
  border-color: var(--photon-primary);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.code-input.filled {
  border-color: var(--photon-primary);
  background: rgba(251, 191, 36, 0.1);
}

.code-separator {
  color: var(--photon-text-muted);
  font-size: 1.5rem;
  font-weight: 300;
}

/* Timer */
.timer-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--photon-text-muted);
  font-size: 0.875rem;
  margin: 1rem 0;
}

.timer-wrapper strong {
  color: var(--photon-primary);
  font-family: monospace;
}

/* Error Message */
.error-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 0.5rem;
  color: #ef4444;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Success Message */
.success-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 0.5rem;
  color: #22c55e;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Auth Button */
.auth-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--photon-bg-primary);
  background: linear-gradient(90deg, var(--photon-primary) 0%, var(--photon-secondary) 100%);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.auth-btn:hover:not(:disabled) {
  background: linear-gradient(90deg, var(--photon-primary-dark) 0%, var(--photon-secondary-dark) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-text,
.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Auth Actions */
.auth-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--photon-border);
}

.resend-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--photon-primary);
  background: transparent;
  border: 1px solid var(--photon-primary);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.resend-btn:hover:not(:disabled) {
  background: rgba(251, 191, 36, 0.1);
}

.resend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--photon-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--photon-primary);
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--photon-border);
}

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

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem;
  }

  .code-input {
    width: 2.5rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  .code-input-wrapper {
    gap: 0.25rem;
  }
}
