/* ==========================================================================
   MTC Redesign 2026 — Auth (Login + Password Change)
   Split-Layout: navy gradient brand left, beige form right.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  min-height: 100vh;
  background: var(--bg);
}
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.45;
}

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ----- LEFT: BRAND ----- */
.login-brand {
  /* Navy bg matches the PNG edges seamlessly bei beliebigem Aspect-Ratio */
  background: linear-gradient(135deg, #0F1E3D 0%, #1A2D4A 100%);
  position: relative;
  overflow: hidden;
  display: block;
}
.login-brand .hype-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  /* Image hat die Komposition + Hintergrund schon eingebaut */
}

/* ----- RIGHT: FORM ----- */
.login-form-wrap {
  background: var(--bg);
  padding: 56px;
  display: flex; align-items: center; justify-content: center;
}
.login-form {
  width: 100%; max-width: 380px;
}
.login-form .eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-tertiary); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.login-form h2 {
  margin: 0 0 8px; font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text-primary);
}
.login-form .sub {
  color: var(--text-tertiary); font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.5;
}

.login-form .fields {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 20px;
}
.login-form .field {
  display: flex; flex-direction: column;
}
.login-form .field-label {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-secondary); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center;
}
.login-form .field-label a {
  text-transform: none; letter-spacing: 0;
  font-size: 11px; color: var(--blue); font-weight: 500;
  text-decoration: none;
}
.login-form .field-label a:hover { text-decoration: underline; }

.login-form input {
  width: 100%; height: 44px; padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit; font-size: 14px;
  color: var(--text-primary);
  transition: all 0.15s;
  font-family: inherit;
}
.login-form input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.login-form input::placeholder { color: var(--text-muted); }

.login-form .submit {
  width: 100%; height: 44px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 8px;
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.15s;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
  font-family: inherit;
}
.login-form .submit:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}
.login-form .submit:disabled {
  background: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
}
.login-form .submit i { width: 16px; height: 16px; }

.login-form .footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-tertiary);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* Error / message bar inside form */
.login-form .msg {
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
  display: none;
}
.login-form .msg.show { display: block; }
.login-form .msg.error {
  background: var(--danger-bg);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: var(--danger);
}
.login-form .msg.ok {
  background: var(--success-bg);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: var(--success);
}

/* ============================================================
   PASSWORD-FORM HINT LIST
   ============================================================ */
.login-form .pwd-form-hint {
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-brand {
    padding: 32px 24px;
    min-height: 280px;
  }
  .login-brand h1 { font-size: 28px; }
  .login-brand p { font-size: 14px; }
  .login-brand .stats { gap: 18px; margin-top: 18px; }
  .login-brand .stat .v { font-size: 18px; }
  .login-form-wrap { padding: 32px 24px; }
  .login-form h2 { font-size: 22px; }
  .login-form .footer { font-size: 11px; }
}
