    :root {
      --bg: #f4f6f9;
      --bg-panel: #ffffff;
      --bg-soft: #ecf0f6;
      --line: rgba(0,0,0,.08);
      --line-strong: rgba(0,0,0,.14);
      --text: #1a2332;
      --muted: #5a6a7e;
      --brand: #d94209;
      --brand-strong: #e84a0c;
      --accent: #b07d0a;
      --danger: #d94209;
      --success: #127a41;
      --nav-bg: #1a2b3c;
      --shadow: 0 18px 40px rgba(20, 35, 62, 0.08);
      --radius-lg: 22px;
      --radius-md: 16px;
      --font-body: "Inter", "Segoe UI", sans-serif;
      --font-display: "Syne", "Segoe UI", sans-serif;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: var(--font-body);
      color: var(--text);
      background:
        radial-gradient(circle at 12% 0%, rgba(217,66,9,.09), transparent 24%),
        linear-gradient(180deg, var(--bg), #eaecf2 100%);
      display: grid;
      place-items: center;
      padding: 20px;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        linear-gradient(rgba(0,0,0,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.02) 1px, transparent 1px);
      background-size: 42px 42px;
      mask-image: radial-gradient(circle at center, black 38%, transparent 100%);
      opacity: 0.22;
    }

    .auth-shell {
      width: min(100%, 400px);
      position: relative;
      z-index: 1;
    }

    .login-panel {
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background: var(--bg-panel);
      box-shadow: var(--shadow);
    }

    .brand-mark {
      width: 46px;
      height: 46px;
      border-radius: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(160deg, rgba(217,66,9,.16), rgba(217,66,9,.08));
      border: 1px solid rgba(217,66,9,.18);
      color: var(--brand);
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.08em;
    }

    .login-panel h2 {
      margin: 0;
      font-family: var(--font-display);
      letter-spacing: -0.02em;
    }

    .login-panel {
      padding: 30px 28px;
      display: grid;
      align-content: center;
      gap: 18px;
      min-height: min(520px, calc(100vh - 40px));
    }

    .login-head {
      display: grid;
      gap: 8px;
    }

    .login-head-centered {
      text-align: center;
    }

    .brand-mark-centered {
      margin: 0 auto;
    }

    .login-title {
      margin-top: 12px !important;
    }

    .login-head p {
      margin: 0;
      color: var(--muted);
      line-height: 1.6;
    }

    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      border-radius: 999px;
      background: rgba(217,66,9,.08);
      color: var(--brand);
      font-size: 0.85rem;
      font-weight: 700;
      width: fit-content;
    }

    form {
      display: grid;
      gap: 14px;
    }

    label {
      display: grid;
      gap: 7px;
      font-size: 0.92rem;
      font-weight: 600;
      color: var(--text);
    }

    input {
      width: 100%;
      padding: 13px 14px;
      border-radius: 14px;
      border: 1px solid var(--line-strong);
      background: var(--bg-soft);
      color: var(--text);
      font: inherit;
      transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    input:focus {
      outline: none;
      border-color: rgba(217,66,9,.45);
      box-shadow: 0 0 0 4px rgba(217,66,9,.12);
      background: #fff;
    }

    .error-box {
      min-height: 22px;
      color: var(--danger);
      font-size: 0.92rem;
      line-height: 1.45;
    }

    .error-box:empty {
      display: none;
    }

    .error-box.success {
      color: var(--success);
    }

    .actions {
      display: grid;
      gap: 10px;
    }

    .btn-primary {
      border: none;
      border-radius: 14px;
      padding: 14px 16px;
      font: inherit;
      font-weight: 700;
      color: #fff;
      background: linear-gradient(135deg, var(--brand), var(--brand-strong));
      box-shadow: 0 12px 28px rgba(217,66,9,.2);
      cursor: pointer;
      transition: transform 0.15s ease, opacity 0.15s ease;
    }

    .btn-primary:hover:not(:disabled) {
      transform: translateY(-1px);
    }

    .btn-primary:disabled {
      opacity: 0.7;
      cursor: wait;
    }

    .btn-link {
      border: 0;
      background: transparent;
      color: var(--muted);
      font: inherit;
      font-weight: 600;
      cursor: pointer;
      padding: 7px;
    }

    .btn-link:hover:not(:disabled) {
      color: var(--brand);
    }

    .btn-link:disabled {
      opacity: 0.6;
      cursor: wait;
    }

    .auth-help {
      margin: 0;
      color: var(--muted);
      font-size: 0.86rem;
      line-height: 1.5;
    }

    .hidden {
      display: none !important;
    }

    .spinner {
      width: 15px;
      height: 15px;
      border: 2px solid rgba(255,255,255,.34);
      border-top-color: #fff;
      border-radius: 50%;
      display: inline-block;
      animation: spin 0.8s linear infinite;
      vertical-align: middle;
      margin-right: 8px;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    @media (max-width: 860px) {
      .login-panel {
        min-height: auto;
      }
    }
