:root {
      --rhn-bg: #06150b;
      --rhn-card: #071d10;
      --rhn-line: rgba(126, 226, 15, 0.42);
      --rhn-lime: #7ee20f;
      --rhn-yellow: #ffbe16;
      --rhn-text: #f5f7f4;
      --rhn-muted: rgba(245, 247, 244, 0.58);
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      margin: 0;
      min-height: 100%;
    }

    body {
      min-height: 100vh;
      overflow-x: hidden;
      overflow-y: auto;
      font-family: "Poppins", sans-serif;
      color: var(--rhn-text);
      background: #000000;
    }

    .auth-page {
      width: 100%;
      min-height: 100vh;
      min-height: 100svh;
      min-height: 100dvh;
      display: flex;
      align-items: stretch;
      justify-content: stretch;
      padding: 20px 14px;
    }

    .auth-card {
      width: min(100%, 500px);
      margin: auto;
      padding: 24px 28px 22px;
      border: 1px solid var(--rhn-line);
      border-radius: 18px;
      background: #0b0f0d;
      box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    }

    .auth-logo {
      display: block;
      width: min(205px, 54%);
      max-height: 110px;
      margin: 0 auto 16px;
      object-fit: contain;
    }

    .auth-error {
      margin-bottom: 14px;
      padding: 10px 12px;
      border: 1px solid rgba(255, 84, 84, 0.35);
      border-radius: 8px;
      background: rgba(255, 84, 84, 0.07);
      color: #ffb5b5;
      font-size: 11px;
      line-height: 1.55;
    }

    .form-group {
      margin-top: 12px;
    }

    .form-label {
      display: block;
      margin-bottom: 6px;
      color: #ffffff;
      font-size: 12px;
      font-weight: 500;
    }

    .input-wrap {
      position: relative;
      display: flex;
      min-height: 50px;
      align-items: center;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 9px;
      background: rgba(255, 255, 255, 0.016);
      transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
    }

    .input-wrap:focus-within {
      border-color: rgba(126, 226, 15, 0.72);
      background: rgba(126, 226, 15, 0.025);
      box-shadow: 0 0 0 3px rgba(126, 226, 15, 0.06);
    }

    .input-icon {
      width: 48px;
      flex: 0 0 48px;
      color: var(--rhn-lime);
      font-size: 16px;
      text-align: center;
    }

    .auth-input {
      width: 100%;
      min-width: 0;
      border: 0;
      outline: 0;
      padding: 0 12px 0 0;
      background: transparent;
      color: #ffffff;
      font: inherit;
      font-size: 13px;
    }

    .auth-input::placeholder {
      color: rgba(255, 255, 255, 0.43);
    }

    .toggle-password {
      width: 45px;
      height: 50px;
      flex: 0 0 45px;
      border: 0;
      background: transparent;
      color: rgba(255, 255, 255, 0.70);
      cursor: pointer;
      font-size: 15px;
    }

    .toggle-password:hover {
      color: #ffffff;
    }

    .terms-row {
      margin-top: 14px;
    }

    .terms-label {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      color: #ffffff;
      font-size: 12px;
      line-height: 1.55;
      cursor: pointer;
    }

    .terms-label input {
      appearance: none;
      width: 19px;
      height: 19px;
      flex: 0 0 19px;
      display: grid;
      place-content: center;
      margin-top: 1px;
      border: 1px solid var(--rhn-lime);
      border-radius: 4px;
      background: transparent;
    }

    .terms-label input::before {
      content: "";
      width: 9px;
      height: 9px;
      border-radius: 2px;
      background: var(--rhn-lime);
      transform: scale(0);
      transition: transform 0.14s ease;
    }

    .terms-label input:checked::before {
      transform: scale(1);
    }

    .auth-link {
      color: var(--rhn-lime);
      font-weight: 600;
      text-decoration: none;
    }

    .auth-submit {
      width: 100%;
      min-height: 50px;
      margin-top: 18px;
      border: 0;
      border-radius: 9px;
      background: var(--rhn-yellow);
      color: #071108;
      font: inherit;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 10px 24px rgba(255, 190, 22, 0.13);
      transition:
        transform 0.18s ease,
        filter 0.18s ease;
    }

    .auth-submit:hover {
      transform: translateY(-1px);
      filter: brightness(1.03);
    }

    .back-home {
      width: 100%;
      min-height: 48px;
      margin-top: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      border: 1px solid rgba(126, 226, 15, 0.76);
      border-radius: 9px;
      color: var(--rhn-lime);
      font-size: 13px;
      font-weight: 600;
      text-decoration: none;
    }

    .auth-divider {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-top: 16px;
      color: rgba(126, 226, 15, 0.50);
      font-size: 13px;
    }

    .auth-divider::before,
    .auth-divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: rgba(126, 226, 15, 0.24);
    }

    .auth-switch {
      margin: 13px 0 0;
      color: rgba(255, 255, 255, 0.76);
      font-size: 13px;
      text-align: center;
    }

    .ml-2 {
      margin-left: 8px;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    :root[data-theme="light"] body {
      color: #243224;
      background: #f8fafc;
    }

    :root[data-theme="light"] .auth-card {
      border-color: rgba(52, 121, 40, 0.16);
      background: #ffffff;
      box-shadow: 0 18px 46px rgba(23, 63, 27, 0.09);
    }

    :root[data-theme="light"] .form-label,
    :root[data-theme="light"] .terms-label {
      color: #172316;
    }

    :root[data-theme="light"] .input-wrap {
      border-color: #dbe3ee;
      background: #ffffff;
    }

    :root[data-theme="light"] .input-wrap:focus-within {
      border-color: rgba(52, 121, 40, 0.55);
      background: #ffffff;
      box-shadow: 0 0 0 3px rgba(52, 121, 40, 0.08);
    }

    :root[data-theme="light"] .auth-input {
      color: #0f172a;
    }

    :root[data-theme="light"] .auth-input::placeholder,
    :root[data-theme="light"] .auth-switch {
      color: #64748b;
    }

    :root[data-theme="light"] .toggle-password {
      color: #64748b;
    }

    :root[data-theme="light"] .toggle-password:hover {
      color: #172316;
    }

    :root[data-theme="light"] .auth-error {
      background: #fff1f2;
      color: #be123c;
    }

    :root[data-theme="light"] .back-home {
      border-color: rgba(52, 121, 40, 0.22);
      color: #347928;
      background: #f8fafc;
    }

    :root[data-theme="light"] .auth-divider {
      color: rgba(52, 121, 40, 0.46);
    }

    :root[data-theme="light"] .auth-divider::before,
    :root[data-theme="light"] .auth-divider::after {
      background: rgba(52, 121, 40, 0.16);
    }

    @media (max-width: 560px) {
      .auth-page {
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;
        padding: 12px;
      }

      .auth-card {
        padding: 20px 16px 18px;
        border-radius: 15px;
      }

      .auth-logo {
        width: min(185px, 58%);
        margin-bottom: 12px;
      }

      .form-group {
        margin-top: 10px;
      }

      .input-wrap {
        min-height: 47px;
      }

      .toggle-password {
        height: 47px;
      }

      .auth-input {
        font-size: 12px;
      }

      .auth-submit {
        min-height: 48px;
        margin-top: 16px;
      }
    }

    @media (max-height: 760px) and (min-width: 561px) {
      .auth-page {
        padding-block: 12px;
      }

      .auth-card {
        padding-top: 18px;
        padding-bottom: 18px;
      }

      .auth-logo {
        width: 175px;
        margin-bottom: 8px;
      }

      .form-group {
        margin-top: 9px;
      }

      .input-wrap {
        min-height: 45px;
      }

      .toggle-password {
        height: 45px;
      }

      .terms-row {
        margin-top: 10px;
      }

      .auth-submit {
        min-height: 46px;
        margin-top: 13px;
      }

      .back-home {
        min-height: 44px;
        margin-top: 8px;
      }

      .auth-divider {
        margin-top: 11px;
      }

      .auth-switch {
        margin-top: 9px;
      }
    }

    @supports (padding: max(0px)) {
      .auth-page {
        padding-top: max(10px, env(safe-area-inset-top));
        padding-right: max(10px, env(safe-area-inset-right));
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        padding-left: max(10px, env(safe-area-inset-left));
      }
    }
