
html,body{overscroll-behavior:none}

#cmseLoginPage {
      color-scheme: light;
      font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    }

    #cmseLoginPage,

    #cmseLoginPage * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      background:
        linear-gradient(
          135deg,
          #f4f7fb 0%,
          #eef3f8 100%
        );
      color: #1f2937;
    }

    #cmseLoginPage {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 32px 18px;
    }

    #cmseLoginPage .shell {
      width: 100%;
      max-width: 470px;
    }

    #cmseLoginPage .brand {
      text-align: center;
      margin-bottom: 22px;
    }

    #cmseLoginPage .brand-mark {
      width: 64px;
      height: 64px;
      margin: 0 auto 14px;
      border-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #173f5f;
      color: white;
      font-size: 27px;
      font-weight: 700;
      letter-spacing: 1px;
      box-shadow:
        0 10px 25px rgba(23, 63, 95, 0.18);
    }

    #cmseLoginPage .brand h1 {
      margin: 0;
      font-size: 25px;
      font-weight: 700;
      color: #173f5f;
    }

    #cmseLoginPage .brand p {
      margin: 7px 0 0;
      font-size: 14px;
      color: #6b7280;
    }

    #cmseLoginPage .card {
      background: #ffffff;
      border: 1px solid #e5e7eb;
      border-radius: 18px;
      padding: 28px;
      box-shadow:
        0 18px 45px rgba(17, 24, 39, 0.08);
    }

    #cmseLoginPage .section-title {
      margin: 0 0 5px;
      font-size: 21px;
      font-weight: 700;
      color: #111827;
    }

    #cmseLoginPage .section-subtitle {
      margin: 0 0 24px;
      font-size: 14px;
      line-height: 1.5;
      color: #6b7280;
    }

    #cmseLoginPage .field {
      margin-bottom: 17px;
    }

    label {
      display: block;
      margin-bottom: 7px;
      font-size: 13px;
      font-weight: 600;
      color: #374151;
    }

    input {
      width: 100%;
      height: 44px;
      padding: 0 13px;
      border: 1px solid #d1d5db;
      border-radius: 10px;
      background: white;
      color: #111827;
      font-size: 15px;
      outline: none;
      transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
    }

    input:focus {
      border-color: #173f5f;
      box-shadow:
        0 0 0 3px rgba(23, 63, 95, 0.10);
    }

    button {
      font: inherit;
      cursor: pointer;
    }

    .primary {
      width: 100%;
      height: 46px;
      border: none;
      border-radius: 10px;
      background: #173f5f;
      color: white;
      font-size: 15px;
      font-weight: 700;
    }

    .primary:hover:not(:disabled) {
      filter: brightness(0.97);
    }

    .primary:disabled {
      opacity: 0.62;
      cursor: default;
    }

    .link-row {
      margin-top: 16px;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    #cmseLoginPage .link-button {
      border: none;
      background: transparent;
      padding: 0;
      color: #173f5f;
      font-size: 13px;
      font-weight: 600;
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    #cmseLoginPage .status {
      display: none;
      margin-top: 20px;
      padding: 13px 14px;
      border-radius: 10px;
      font-size: 13px;
      line-height: 1.5;
      white-space: pre-line;
    }

    #cmseLoginPage .status.info {
      display: block;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      color: #1e3a8a;
    }

    #cmseLoginPage .status.success {
      display: block;
      background: #ecfdf5;
      border: 1px solid #a7f3d0;
      color: #065f46;
    }

    #cmseLoginPage .status.error {
      display: block;
      background: #fef2f2;
      border: 1px solid #fecaca;
      color: #991b1b;
    }

    #cmseLoginPage .authorized-panel {
      display: none;
    }

    .identity-card {
      margin-top: 20px;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      background: #f9fafb;
      padding: 16px;
    }

    #cmseLoginPage .identity-row {
      margin-bottom: 10px;
    }

    #cmseLoginPage .identity-row:last-child {
      margin-bottom: 0;
    }

    #cmseLoginPage .identity-label {
      display: block;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #6b7280;
      margin-bottom: 2px;
    }

    #cmseLoginPage .identity-value {
      font-size: 14px;
      color: #111827;
      word-break: break-word;
    }

    .logout {
      margin-top: 18px;
      width: 100%;
      height: 42px;
      border: 1px solid #d1d5db;
      border-radius: 10px;
      background: white;
      color: #374151;
      font-size: 14px;
      font-weight: 600;
    }

    #cmseLoginPage .footer {
      margin-top: 18px;
      text-align: center;
      color: #9ca3af;
      font-size: 12px;
      line-height: 1.5;
    }
  