@import url("/assets/page/header.css");
:root {
      --bg: #11141c;
      --panel: rgba(35, 40, 54, 0.88);
      --line: rgba(255,255,255,0.12);
      --text: #f4f5f8;
      --muted: #b8bfcc;
      --orange: #ee4400;
      --blue: #58a9c9;
      --shadow: 0 20px 60px rgba(0,0,0,0.38);
      --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    * { box-sizing: border-box; }
    a, button, input, select, textarea, [role="button"] { -webkit-tap-highlight-color: transparent; }
    body {
      margin: 0;
      min-height: 100vh;
      font-family: var(--font);
      color: var(--text);
      background:
        radial-gradient(circle at top left, rgba(238,68,0,0.13), transparent 26rem),
        radial-gradient(circle at bottom right, rgba(73,184,148,0.10), transparent 28rem),
        linear-gradient(135deg, #0d1017 0%, #171b25 48%, #10131a 100%);
    }
    a { color: inherit; text-decoration: none; }
    button, input { font: inherit; }
    button { cursor: pointer; }
    .auth-shell {
      width: min(1180px, calc(100% - 32px));
      min-height: 100vh;
      margin: 0 auto;
      display: grid;
      grid-template-rows: auto 1fr auto;
      gap: 28px;
      padding: 24px 0 42px;
    }
    .btn {
      min-height: 42px;
      border-radius: 8px;
      padding: 0 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255,255,255,0.14);
      background: rgba(255,255,255,0.08);
      color: var(--text);
      font-weight: 700;
      white-space: nowrap;
    }
    .btn.primary {
      width: 100%;
      border: 0;
      background: var(--orange);
      color: #fff;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
    }
    .auth-main {
      display: grid;
      grid-template-columns: minmax(320px, 430px) 1fr;
      align-items: center;
      gap: clamp(24px, 6vw, 72px);
    }
    .login-panel {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      box-shadow: var(--shadow);
      padding: clamp(22px, 4vw, 34px);
    }
    .login-panel h1 {
      margin: 0 0 10px;
      font-size: clamp(1.85rem, 4vw, 2.65rem);
      line-height: 1.02;
      letter-spacing: 0;
    }
    .login-panel p { margin: 0 0 24px; color: var(--muted); line-height: 1.45; }
    .form-grid { display: grid; gap: 14px; }
    label { display: grid; gap: 7px; color: var(--muted); font-size: 0.92rem; }
    .field {
      width: 100%;
      min-height: 46px;
      border-radius: 8px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.06);
      color: var(--text);
      padding: 0 12px;
      outline: none;
    }
    .field:focus { border-color: rgba(238,68,0,0.62); }
    .field:-webkit-autofill,
    .field:-webkit-autofill:hover,
    .field:-webkit-autofill:focus {
      -webkit-text-fill-color: var(--text);
      caret-color: var(--text);
      box-shadow: 0 0 0 1000px #292e3c inset;
      transition: background-color 9999s ease-out;
    }
    .form-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      color: var(--muted);
      font-size: 0.92rem;
    }
    .check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
    .check input { width: 16px; height: 16px; margin: 0; accent-color: var(--orange); cursor: pointer; }
    .form-row a { color: #ffd0a5; }
    .access-note {
      margin: -2px 0 0;
      color: #929baa;
      font-size: 0.78rem;
      line-height: 1.4;
      text-align: center;
    }
    .preview {
      min-height: 520px;
      display: grid;
      align-content: center;
    }
    .preview img {
      width: 100%;
      border-radius: 8px;
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
      background: #fff;
    }
    .recovery-panel > p { margin-bottom: 20px; }
    .recovery-options { display: grid; gap: 10px; }
    .recovery-option {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(255,255,255,0.035);
      padding: 14px;
    }
    .recovery-option b { display: block; margin-bottom: 5px; }
    .recovery-option p { margin: 0; font-size: 0.9rem; }
    .recovery-actions { display: grid; gap: 12px; margin-top: 18px; }
    .back-link { color: #ffd0a5; font-size: 0.9rem; text-align: center; }
    footer {
      padding-top: 18px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 18px;
      font-size: 0.92rem;
    }
    .footer-links {
      display: flex;
      justify-content: flex-end;
      flex-wrap: wrap;
      gap: 14px;
      margin-left: auto;
    }
    footer a:hover { color: var(--text); }
    .cookie-banner {
      position: fixed;
      left: 16px;
      right: 16px;
      bottom: 16px;
      z-index: 60;
      max-width: 760px;
      margin: 0 auto;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(18,22,31,0.96);
      box-shadow: var(--shadow);
      padding: 16px;
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .cookie-banner.is-visible { display: flex; }
    .cookie-banner p { margin: 0; color: var(--muted); line-height: 1.42; }
    .cookie-banner b { color: var(--text); }
    @media (max-width: 900px) {
      .auth-main { grid-template-columns: 1fr; align-items: start; }
      .preview { min-height: 0; }
    }
    @media (max-width: 700px) {
      .auth-shell { width: 100%; padding-top: 0; }
      .auth-main { padding: 0 16px; }
      .login-panel { padding: 22px; }
      footer { padding-inline: 16px; align-items: flex-start; }
      .footer-links { gap: 12px; }
      .cookie-banner { align-items: stretch; flex-direction: column; }
      .cookie-banner .btn { width: 100%; }
    }
