/**
 * /assets/css/auth.css
 *
 * Purpose:  Login, Register, Forgot/Reset Password Styling
 * Deps:     app.css (Variablen)
 * Load:     index.php
 * Version:  1.0.0
 */

/* ============================================================================
   AUTH PAGE LAYOUT
   ============================================================================ */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 2rem 1rem;
}

/* ============================================================================
   GLASS CARD
   ============================================================================ */

.auth-card {
  width: 100%;
  max-width: 420px;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(93, 214, 201, 0.5);
  border-radius: 16px;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
  border-radius: inherit;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.auth-card__header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 2rem 1rem;
}

.auth-card__logo {
  max-width: 140px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.auth-card__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #e6edf3;
}

.auth-card__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #8b949e;
  letter-spacing: 0.05em;
}

/* ============================================================================
   FORM
   ============================================================================ */

.auth-card__form {
  position: relative;
  z-index: 1;
  padding: 1.5rem 2rem;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b949e;
  margin-bottom: 0.35rem;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  z-index: 2;
}

.auth-input {
  width: 100%;
  padding: 0.65rem 0.75rem 0.65rem 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #e6edf3;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.auth-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(93, 214, 201, 0.4);
  box-shadow: 0 0 0 0.2rem rgba(93, 214, 201, 0.12);
}

/* Password Toggle */
.auth-toggle-pw {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.85rem;
  z-index: 2;
  transition: color 0.2s;
}

.auth-toggle-pw:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================================
   CHECKBOX + LINKS
   ============================================================================ */

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #8b949e;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  accent-color: var(--accent, #5dd6c9);
}

.auth-link {
  font-size: 0.8rem;
  color: #8b949e;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-link:hover {
  color: #e6edf3;
}

.auth-link--accent {
  color: var(--accent, #5dd6c9);
  font-weight: 600;
}

.auth-link--accent:hover {
  color: #7de8dd;
}

/* ============================================================================
   SUBMIT BUTTON
   ============================================================================ */

.auth-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(93, 214, 201, 0.25), rgba(77, 163, 255, 0.25));
  border: 1px solid rgba(93, 214, 201, 0.3);
  border-radius: 10px;
  color: #e6edf3;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.auth-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}

.auth-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(93, 214, 201, 0.35), rgba(77, 163, 255, 0.35));
  border-color: rgba(93, 214, 201, 0.5);
  box-shadow:
    0 4px 16px rgba(93, 214, 201, 0.15),
    0 0 24px rgba(93, 214, 201, 0.08);
}

.auth-btn:active {
  transform: translateY(0);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.auth-card__footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: #8b949e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  .auth-btn {
    transition: none;
  }

  .auth-btn:hover {
    transform: none;
  }

  .auth-input {
    transition: none;
  }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 480px) {
  .auth-card__form,
  .auth-card__header {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .auth-card__footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
