:root {
      --bg: #eef2f4;
      --ink: #203040;
      --muted: #526273;
      --paper: #ffffff;
      --line: #caa273;
      --accent: #6b1239;
      --accent-dark: #4f0d2a;
      --header: #1f3144;
      --error-bg: #fff1f0;
      --error-line: #cf4a10;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      min-height: 100vh;
      font-family: "Source Sans 3", sans-serif;
      color: var(--ink);
      background:
        radial-gradient(1200px 520px at 8% 0%, #ffffff 0%, transparent 60%),
        radial-gradient(820px 420px at 96% 100%, #e1e9ed 0%, transparent 62%),
        var(--bg);
      display: grid;
      place-items: center;
      padding: 18px;
    }

    .shell {
      width: min(960px, 100%);
      border: 1.5px solid var(--line);
      border-radius: 22px;
      overflow: hidden;
      background: var(--paper);
      box-shadow: 0 20px 44px rgba(32, 48, 64, .16);
    }

    .header {
      display: grid;
      grid-template-columns: auto 1fr;
      align-items: center;
      gap: 1rem;
      padding: 1.15rem 1.3rem;
      border-bottom: 1.5px solid var(--line);
      background: linear-gradient(120deg, #fdf9f4 0%, #f4f8fb 100%);
    }

    .brand-badge {
      width: 102px;
      height: 78px;
      border-radius: 14px;
      border: 2px solid var(--accent);
      background: #fff;
      display: grid;
      place-items: center;
      padding: 4px;
      box-shadow: 0 8px 18px rgba(107, 18, 57, .18);
    }

    .brand-badge img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .brand-copy h1 {
      font-family: "Merriweather", serif;
      font-size: clamp(1.5rem, 2.8vw, 2rem);
      color: var(--header);
      letter-spacing: .03em;
      line-height: 1.05;
      margin-bottom: .2rem;
    }

    .brand-copy p {
      font-size: .98rem;
      color: var(--muted);
    }

    .main {
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      min-height: 470px;
    }

    .panel-left {
      border-right: 1.5px solid #e3d4c2;
      background: #fcfdfd;
      padding: 1.3rem 1.35rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: .95rem;
    }

    .seal-title {
      font-family: "Merriweather", serif;
      font-size: 1.16rem;
      color: var(--header);
      line-height: 1.35;
    }

    .seal-text {
      color: #4f6172;
      font-size: .95rem;
      line-height: 1.45;
    }

    .meta-grid {
      margin-top: .3rem;
      display: grid;
      grid-template-columns: 1fr;
      gap: .5rem;
    }

    .meta-item {
      border: 1px solid #d8e2e8;
      background: #f8fbfd;
      color: #466076;
      border-radius: 10px;
      padding: .55rem .7rem;
      font-size: .88rem;
      display: flex;
      align-items: center;
      gap: .45rem;
    }

    .panel-right {
      padding: 1.45rem 1.35rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .auth-head {
      margin-bottom: 1rem;
      padding-bottom: .85rem;
      border-bottom: 1px dashed #d2b893;
    }

    .auth-head h2 {
      font-family: "Merriweather", serif;
      color: var(--header);
      font-size: 1.45rem;
      margin-bottom: .2rem;
    }

    .auth-head p {
      color: #617386;
      font-size: .92rem;
    }

    .error-msg {
      background: var(--error-bg);
      border: 1px solid var(--error-line);
      color: #bf4206;
      border-radius: 10px;
      padding: .66rem .8rem;
      font-size: .88rem;
      margin-bottom: .85rem;
    }

    .field { margin-bottom: .9rem; }

    label {
      display: block;
      margin-bottom: .34rem;
      font-size: .78rem;
      text-transform: uppercase;
      letter-spacing: .08em;
      font-weight: 700;
      color: #4e6074;
    }

    input[type="text"],
    input[type="password"] {
      width: 100%;
      border: 1.5px solid #cfa878;
      border-radius: 10px;
      background: #fff;
      color: var(--ink);
      padding: .66rem .82rem;
      font-family: inherit;
      font-size: .97rem;
      transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
      outline: none;
    }

    input:focus {
      border-color: var(--accent);
      background: #fffdfb;
      box-shadow: 0 0 0 3px rgba(107, 18, 57, .14);
    }

    .btn {
      margin-top: .35rem;
      width: 100%;
      border: 0;
      border-radius: 11px;
      background: linear-gradient(135deg, #6b1239, #540f2d);
      color: #fff;
      font-family: inherit;
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: .02em;
      padding: .76rem 1rem;
      cursor: pointer;
      transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
      box-shadow: 0 8px 19px rgba(107, 18, 57, .22);
    }

    .btn:hover {
      transform: translateY(-1px);
      background: linear-gradient(135deg, #611034, #4b0d27);
      box-shadow: 0 12px 24px rgba(107, 18, 57, .25);
    }

    @media (max-width: 980px) {
      .main { grid-template-columns: 1fr; }
      .panel-left {
        border-right: 0;
        border-bottom: 1.5px solid #e3d4c2;
      }
    }

    @media (max-width: 620px) {
      body { padding: 12px; }
      .header { grid-template-columns: 1fr; justify-items: center; text-align: center; }
      .brand-copy p { max-width: 34ch; }
      .panel-left, .panel-right { padding: 1rem .95rem; }
      .seal-title { font-size: 1.03rem; }
    }