:root {
    --blue: #2f55f4;
    --blue-dark: #132e9a;
    --ink: #050b26;
    --muted: #59647d;
    --line: #cfd8ee;
    --panel: rgba(255, 255, 255, 0.72);
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html,
body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

body {
    color: var(--ink);
    background: #f6f9ff;
}

.page {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 18px 48px 16px;
    overflow: hidden;
    isolation: isolate;
}

.page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -4;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.98) 0 22%, rgba(246, 249, 255, 0.86) 48%, rgba(231, 240, 255, 0.92) 100%);
}

.page::after {
    content: "";
    position: absolute;
    left: -8vw;
    right: -8vw;
    bottom: 54px;
    height: 36vh;
    z-index: -2;
    background:
        linear-gradient(160deg, transparent 0 20%, rgba(37, 99, 235, 0.13) 21% 32%, transparent 33% 100%),
        linear-gradient(18deg, rgba(56, 116, 255, 0.28), rgba(117, 169, 255, 0.16) 48%, transparent 49%),
        linear-gradient(166deg, transparent 0 33%, rgba(28, 91, 255, 0.30) 34% 42%, rgba(179, 211, 255, 0.22) 43% 100%);
    filter: blur(0.2px);
    transform: skewY(-3deg);
}

.map-dots {
    position: absolute;
    inset: 95px 0 auto 0;
    height: 300px;
    z-index: -3;
    opacity: 0.55;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.28) 1.1px, transparent 1.2px);
    background-size: 8px 8px;
    mask-image: radial-gradient(ellipse at 18% 45%, #000 0 20%, transparent 31%), radial-gradient(ellipse at 84% 35%, #000 0 24%, transparent 34%);
    -webkit-mask-image: radial-gradient(ellipse at 18% 45%, #000 0 20%, transparent 31%), radial-gradient(ellipse at 84% 35%, #000 0 24%, transparent 34%);
}

.brand-header {
    text-align: center;
    padding-top: 0;
}

.brand-logo {
    display: block;
    width: min(665px, 50vw);
    height: auto;
    margin: 0 auto 10px;
    filter: drop-shadow(0 12px 24px rgba(37, 99, 235, 0.12));
    mix-blend-mode: multiply;
}

.brand-line {
    width: 290px;
    height: 2px;
    margin: -2px auto 10px;
    background: linear-gradient(90deg, transparent, #2f55f4, transparent);
}

.tagline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #101733;
    font-size: 19px;
    font-weight: 650;
}

.tagline .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}

.login-stage {
    flex: 1;
    display: grid;
    grid-template-columns: 456px 560px;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 26px 0 18px;
}

.info-panel,
.login-card {
    border: 1px solid rgba(207, 216, 238, 0.88);
    box-shadow: 0 26px 70px rgba(37, 75, 160, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.info-panel {
    min-height: 500px;
    padding: 28px 38px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.58);
}

.info-panel h1 {
    max-width: 390px;
    color: var(--ink);
    font-size: 27px;
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.4px;
}

.info-panel h1 span {
    color: var(--blue);
}

.title-rule {
    width: 38px;
    height: 3px;
    margin: 12px 0 16px;
    background: var(--blue);
    border-radius: 999px;
}

.intro {
    max-width: 390px;
    color: #536078;
    font-size: 15.5px;
    line-height: 1.55;
    font-weight: 600;
}

.feature-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.feature-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    align-items: center;
}

.feature-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e0f4;
    border-radius: 15px;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.70);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
    font-size: 27px;
}

.feature-copy h3 {
    margin-bottom: 6px;
    color: #09102a;
    font-size: 15px;
    font-weight: 900;
}

.feature-copy p {
    color: #536078;
    font-size: 13px;
    line-height: 1.48;
    font-weight: 600;
}

.login-card {
    min-height: 500px;
    padding: 44px 58px 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.90);
}

.form-wrapper {
    width: 100%;
}

.form-wrapper h2 {
    text-align: center;
    color: var(--ink);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 950;
}

.subtitle {
    margin: 14px 0 34px;
    text-align: center;
    color: #59647d;
    font-size: 15.5px;
    font-weight: 650;
}

.error-message {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #b91c1c;
    background: #fef2f2;
    font-size: 14px;
    font-weight: 750;
}

.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: #09102a;
    font-size: 13px;
    font-weight: 900;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 54px;
    border: 1.5px solid #c8d2ea;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    padding: 0 54px 0 20px; /* Right padding for toggle icon, left padding normal */
    font-size: 15.5px;
    font-weight: 650;
    outline: none;
    box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.03);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-wrapper input::placeholder {
    color: #8893ad;
}

.input-wrapper input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(47, 85, 244, 0.12);
}

.prefix-icon,
.toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #62708d;
    font-size: 20px;
}

.prefix-icon {
    left: 18px;
}

.toggle-password {
    right: 18px;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin: 4px 0 22px;
    font-size: 14px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #33415f;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.remember-me input {
    width: 21px;
    height: 21px;
    accent-color: var(--blue);
}

.forgot-password {
    color: #0d3bf2;
    text-decoration: none;
    font-weight: 750;
}

.login-btn {
    width: 100%;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(90deg, #2431f4, #5276ff);
    box-shadow: 0 18px 36px rgba(47, 85, 244, 0.28);
    font-size: 16px;
    font-weight: 950;
    letter-spacing: 0.3px;
    cursor: pointer;
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
    color: #74809a;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 650;
}

.secure-note i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--blue);
    background: #eef3ff;
}

.page-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    color: #536078;
    font-size: 14px;
    font-weight: 650;
}

.footer-left,
.footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-left i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #8390ac;
    border-radius: 50%;
    color: #64748b;
}

.version-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-width: 110px;
    border: 1px solid #c7d2ea;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #1b2c72;
    font-size: 13px;
    font-weight: 900;
}

.footer-links {
    justify-content: flex-end;
}

.footer-links a {
    color: #0d3bf2;
    text-decoration: none;
    font-weight: 750;
}

.footer-links span {
    color: #8490aa;
}

@media (max-width: 1180px) {
    .page {
        padding-left: 24px;
        padding-right: 24px;
    }


    .login-stage {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 720px;
        width: 100%;
        margin: 0 auto;
    }

    .info-panel,
    .login-card {
        min-height: auto;
    }
}

@media (max-width: 760px) {

    .brand-logo {
        width: min(460px, 86vw);
    }

    .tagline {
        flex-wrap: wrap;
        font-size: 15px;
    }

    .login-card,
    .info-panel {
        padding: 28px 20px;
    }

    .feature-item,
    .page-footer {
        grid-template-columns: 1fr;
    }


    .page-footer,
    .footer-left,
    .footer-links {
        justify-content: center;
        text-align: center;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
    }
}
