/* css/auth.css — Login & Registrierung */

/* ─── SCREEN LAYOUT ──────────────────────────────────────────────────────── */
#auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: radial-gradient(ellipse 100% 80% at 20% 50%, rgba(26, 18, 8, .9) 0%, var(--bg) 60%);
}

/* ─── LINKE SPALTE: BRANDING ─────────────────────────────────────────────── */
.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 48px 60px 52px;
  position: relative;
  overflow: hidden;
}

.auth-brand::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, .12) 0%, transparent 65%);
  pointer-events: none;
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.auth-logo-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(245, 158, 11, .2);
}

.auth-brand-wordmark {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -1px;
  line-height: 1;
}

.auth-brand-wordmark .wm-mood {
  color: var(--accent);
  font-weight: 800;
}

.auth-brand-wordmark .wm-app {
  color: var(--text);
  font-weight: 300;
}

.auth-brand-tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.5vw, 40px);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.auth-brand-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 340px;
  margin: 0 auto 36px;
}

/* ─── FEATURE CARDS (Auth) ───────────────────────────────────────────────── */
.auth-feature-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-feat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(20,20,32,0.62);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--glass-shadow);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.auth-feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at left, rgba(245, 158, 11, .06), transparent 70%);
  opacity: 0;
  transition: opacity .2s;
}

.auth-feat-card--mood::before {
  background: radial-gradient(ellipse at left, rgba(16, 185, 129, .06), transparent 70%);
}

.auth-feat-card:hover {
  border-color: rgba(245, 158, 11, .35);
  transform: translateX(4px);
}

.auth-feat-card:hover::before {
  opacity: 1;
}

.auth-feat-card--mood:hover {
  border-color: rgba(16, 185, 129, .35);
}

/* Preview-Bereich in der Auth-Card */
.auth-feat-preview {
  position: relative;
  width: 110px;
  height: 60px;
  flex-shrink: 0;
}

/* Mini-Cards innerhalb der Auth-Preview */
.auth-feat-preview .home-mini-card {
  position: absolute;
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-feat-preview .home-mini-card:first-child {
  top: 0;
  left: 0;
  z-index: 2;
}

.auth-feat-preview .home-mini-card--offset {
  top: 18px;
  left: 8px;
  z-index: 1;
  opacity: .6;
}

.auth-feat-preview .home-mini-avatar {
  width: 18px;
  height: 18px;
  font-size: 8px;
}

.auth-feat-preview .home-mini-emoji {
  font-size: 12px;
}

.auth-feat-preview .home-mini-line {
  height: 4px;
}

/* Emoji Grid in Auth (kleiner) */
.home-emoji-grid--sm {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  height: 100%;
}

.home-emoji-grid--sm .home-emoji-item {
  font-size: 16px;
  border-radius: 7px;
  padding: 0;
}

/* Text neben der Preview */
.auth-feat-text {}

.auth-feat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245, 158, 11, .8);
  margin-bottom: 3px;
}

.auth-feat-card--mood .auth-feat-label {
  color: rgba(16, 185, 129, .8);
}

.auth-feat-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  line-height: 1.2;
}

/* ─── RECHTE SPALTE: FORMULAR ────────────────────────────────────────────── */
.auth-form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px 48px 48px;
  background: rgba(10,10,20,0.50);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border-left: 1px solid var(--border);
}

.auth-box {
  width: 100%;
  max-width: 360px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 4px;
  margin-bottom: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
  color: var(--muted);
  border: none;
  background: transparent;
}

.auth-tab.active {
  background: var(--accent);
  color: #000;
}

/* ─── RESPONSIVE: Mobile → Einspaltig ───────────────────────────────────── */
@media (max-width: 700px) {
  #auth-screen {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    background: radial-gradient(ellipse 120% 60% at 50% 0%, rgba(26, 18, 8, .9) 0%, var(--bg) 55%);
  }

  .auth-brand {
    padding: 36px 24px 24px;
    align-items: center;
    text-align: center;
  }

  .auth-brand::after {
    display: none;
  }

  .auth-brand-tagline {
    font-size: 26px;
  }

  .auth-brand-sub {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .auth-brand-logo {
    margin-bottom: 16px;
  }

  .auth-feature-cards {
    flex-direction: row;
    gap: 8px;
  }

  .auth-feat-card {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }

  .auth-feat-card:hover {
    transform: none;
  }

  .auth-feat-preview {
    width: 100%;
    height: 50px;
  }

  .auth-feat-title {
    font-size: 12px;
  }

  .auth-form-col {
    padding: 24px 20px 40px;
    border-left: none;
    border-top: 1px solid var(--border);
    background: transparent;
    align-items: flex-start;
  }

  .auth-box {
    max-width: 100%;
  }
}