/* Auth Design Refresh - Luana App
   Enthält Design-Anpassungen für die Auth-Screens (Login/Register/Passwort) */

/* Passwort-Anforderungen Styling */
.password-requirements {
  font-size: 12px;
  color: var(--subtext-color);
  margin: -8px 0 12px 0;
  line-height: 1.4;
}

/* Logo Text statt Icon */
.auth-logo {
  display: none; /* Icon weg */
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.auth-brand-text {
  width: 100%;
  text-align: center;
}

.auth-brand-name {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-color);
  display: block;
  text-align: center;
  margin-bottom: 12px;
}

/* Badge mit Glow */
.auth-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  animation: badgeGlowGreen 2s ease-in-out infinite;
}

/* Grüner Badge (Login/Register) */
#authLoginScreen .auth-badge,
#authRegisterScreen .auth-badge {
  color: #34c759;
  background: rgba(52, 199, 89, 0.1);
  box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.3),
              0 0 12px rgba(52, 199, 89, 0.4);
}

/* Blauer Badge (Reset/Forgot/Confirm) */
#authForgotScreen .auth-badge,
#authResetScreen .auth-badge,
#authConfirmScreen .auth-badge {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3),
              0 0 12px rgba(59, 130, 246, 0.4);
  animation: badgeGlowBlue 2s ease-in-out infinite;
}

@keyframes badgeGlowGreen {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.3),
                0 0 12px rgba(52, 199, 89, 0.4);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.5),
                0 0 18px rgba(52, 199, 89, 0.6);
  }
}

@keyframes badgeGlowBlue {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3),
                0 0 12px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5),
                0 0 18px rgba(59, 130, 246, 0.6);
  }
}

/* Headline größer */
.auth-card h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .auth-card h1 {
    font-size: 36px;
  }
}

.auth-subtitle {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--subtext-color);
}

/* Input Fields */
.auth-form input {
  background-color: #1c1c1e;
  border: 1px solid #2c2c2e;
  color: var(--text-color);
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  transition: all 0.2s ease;
}

/* Input Focus Glow */
#authLoginScreen .auth-form input:focus,
#authRegisterScreen .auth-form input:focus {
  outline: none;
  border-color: #34c759;
  box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.2);
}

#authForgotScreen .auth-form input:focus,
#authResetScreen .auth-form input:focus,
#authConfirmScreen .auth-form input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Form Layout */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.auth-form label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--subtext-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Primary Button Grün */
.primary-btn {
  background: #34c759;
  color: #ffffff;
  font-weight: 600;
  padding: 16px;
  border-radius: 14px;
  border: none;
  box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.3),
              0 0 12px rgba(52, 199, 89, 0.4);
  transition: all 0.2s ease;
  font-size: 16px;
  cursor: pointer;
}

.primary-btn:hover {
  background: #4ade80;
  transform: scale(1.02);
}

.primary-btn:active {
  transform: scale(0.98);
}

/* Links Styling */
.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.auth-links a {
  color: #64d2ff;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(100, 210, 255, 0.4);
}

/* Animationen für Form-Elemente */
.auth-card {
  animation: authCardFadeIn 0.5s ease-out forwards;
}

@keyframes authCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered Animation für Form-Elemente */
.auth-badge,
.auth-card h1,
.auth-subtitle,
.auth-form,
.auth-links {
  opacity: 0;
  transform: translateY(8px);
  animation: authStagger 0.5s ease-out forwards;
}

.auth-badge { animation-delay: 0.1s; }
.auth-card h1 { animation-delay: 0.2s; }
.auth-subtitle { animation-delay: 0.3s; }
.auth-form { animation-delay: 0.4s; }
.auth-links { animation-delay: 0.5s; }

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