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

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      background: #ffffff;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 48px 16px 24px;
    }

    /* ── Logo ── */
    .logo-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      margin-bottom: 32px;
    }

    .logo-mark {
      width: 72px;
      height: 72px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .logo-mark svg {
      width: 42px;
      height: 42px;
    }

    .logo-name {
      font-size: 1.2rem;
      font-weight: 600;
      color: #2c2c2c;
    }

    /* ── Tagline ── */
    .tagline {
      padding: 0px 50px;
      font-size: 1.275rem;
      color: #6b6b6b;
      text-align: center;
      line-height: 1.6;
      margin-bottom: 18px;
      font-weight: 700;
    }

    /* ── Error Banner ── */
    .error-banner {
      width: 100%;
      max-width: 520px;
      background: #c0392b;
      color: #fff;
      padding: 12px 16px;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 0.875rem;
      margin-bottom: 0;
    }

    .error-banner svg { flex-shrink: 0; }

    /* ── Card ── */
    .card {
      width: 100%;
      max-width: 520px;
      background: #f0f0f0;
      padding: 24px 22px 22px;
    }

    .field { margin-bottom: 16px; }

    .field label {
      display: block;
      font-size: 1.175rem;
      font-weight: 500;
      color: #2c2c2c;
      margin-bottom: 5px;
    }

    .field input {
      width: 100%;
      padding: 9px 12px;
      border: 1px solid #ccc;
      border-radius: 3px;
      border-color: #8c8c96;
      font-family: inherit;
      font-size: 0.9rem;
      color: #2c2c2c;
      background: #fff;
      outline: none;
      transition: border-color 0.15s;
    }

    .field input:focus {
      border-color: #888;
    }

    /* Password wrapper */
    .pw-wrap { position: relative; }
    .pw-wrap input { padding-right: 40px; }

    .toggle-pw {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      color: #aaa;
      padding: 0;
      display: flex;
      align-items: center;
    }
    .toggle-pw:hover { color: #666; }

    /* ── Button ── */
    .btn-login {
      padding: 15px 0px;
      width: 100%;
      background: #5c5c5c;
      color: #fff;
      border: none;
      border-radius: 3px;
      font-family: inherit;
      font-size: 0.9rem;
      font-weight: 700;
      cursor: pointer;
      margin-top: 6px;
      transition: background 0.15s;
    }

    .btn-login:hover { background: #444; }
    .btn-login:active { background: #333; }

    /* ── Links ── */
    .links-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 14px;
    }

    .links-end {
      display: flex;
      justify-content: flex-end;
      margin-top: 10px;
    }

    a {
      font-size: 1rem;
      color: #2459a8;
      text-decoration: none;
      font-weight: 700;
    }

    a:hover { text-decoration: underline; }

    /* ── Footer ── */
    footer {
      margin-top: auto;
      padding-top: 48px;
      text-align: center;
      color: #9a9a9a;
      font-size: 0.75rem;
      width: 100%;
    }

    footer .env-label {
      color: #6b6b6b;
      font-size: .875rem;
      margin-bottom: 8px;
      text-align: left;
      padding-left: 56px;
    }

    footer .footer-links {
      display: flex;
      align-items: center;
      padding: 0 40px;
    }

    footer .footer-links a {
      color: #2459a8;
      font-size: 1rem;
      font-weight: 700;
      padding: 0 16px;
    }

    footer .footer-links .sep {
      color: #bbb;
    }

    /* ── Preloader ── */
    #preloader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }

    .preloader-content {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .dots {
      position: absolute;
      display: flex;
      gap: 8px;
    }

    .dot {
        width: 15px;
        height: 15px;
        background-color: #5d83bd;
        border-radius: 50%;
        animation: blink 1s infinite both;
    }

    .dot:nth-child(2) {
      animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
      animation-delay: 0.4s;
    }

    @keyframes blink {
      0%, 80%, 100% {
        opacity: 0;
      }
      40% {
        opacity: 1;
      }
    }

    /* ── Responsive ── */
    @media (max-width: 480px) {
      .card { padding: 20px 16px 18px; }
      .logo-mark { width: 60px; height: 60px; }
      footer .env-label {
        padding-left: 16px;
        padding-right: 16px;
      }
      footer .footer-links {
        padding-left: 0px;
      }
    }