* {
    box-sizing: border-box;
}

:root {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #172033;
}

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

body {
    min-height: 100vh;
    background: #f4f7fb;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}


/* =========================
   PAGE
========================= */

.page {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #f1f5fa 100%
        );
}


/* =========================
   AMBIENT BACKGROUND
========================= */

.ambient {
    position: absolute;

    border-radius: 999px;

    pointer-events: none;

    filter: blur(2px);
}

.ambient-1 {
    width: 620px;
    height: 620px;

    top: -320px;
    left: -220px;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, 0.13),
            rgba(37, 99, 235, 0)
        );
}

.ambient-2 {
    width: 520px;
    height: 520px;

    right: -250px;
    bottom: -260px;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, 0.09),
            rgba(37, 99, 235, 0)
        );
}


/* =========================
   LAYOUT
========================= */

.login-layout {
    position: relative;
    z-index: 1;

    width: min(1180px, calc(100% - 48px));

    min-height: 100vh;

    margin: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(400px, 0.9fr);

    align-items: center;

    gap: 90px;

    padding: 50px 0;
}


/* =========================
   BRAND PANEL
========================= */

.brand-panel {
    min-height: 650px;

    display: flex;
    flex-direction: column;

    padding: 30px 0;
}

.brand-top {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #3478f6,
            #1656d9
        );

    color: white;

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.25);
}

.brand-icon span {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name strong {
    font-size: 17px;
    letter-spacing: -0.3px;
}

.brand-name span {
    color: #8a95a7;
    font-size: 11px;
}


/* =========================
   BRAND CONTENT
========================= */

.brand-content {
    max-width: 620px;

    margin-top: auto;
    margin-bottom: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 24px;
    padding: 7px 11px;

    border: 1px solid #e3eaf4;
    border-radius: 999px;

    background: rgba(255,255,255,0.7);

    color: #64748b;

    font-size: 11px;
    font-weight: 600;

    backdrop-filter: blur(8px);
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.10);
}

.brand-content h1 {
    margin: 0;

    max-width: 620px;

    font-size: clamp(44px, 5vw, 66px);

    line-height: 1.02;

    letter-spacing: -3px;

    font-weight: 750;
}

.brand-content h1 span {
    display: block;

    color: #2563eb;
}

.brand-content > p {
    max-width: 540px;

    margin: 27px 0 0;

    color: #697588;

    font-size: 16px;
    line-height: 1.7;
}


/* =========================
   FEATURES
========================= */

.feature-list {
    display: flex;
    flex-direction: column;

    gap: 18px;

    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;

    gap: 13px;
}

.feature-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e4eaf2;
    border-radius: 11px;

    background: white;

    color: #2563eb;

    font-size: 16px;

    box-shadow:
        0 5px 15px rgba(30, 50, 80, 0.04);
}

.feature div:last-child {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.feature strong {
    font-size: 13px;
}

.feature span {
    color: #8a94a4;
    font-size: 11px;
}


/* =========================
   FOOTER
========================= */

.brand-footer {
    color: #a1aaba;

    font-size: 11px;
}


/* =========================
   LOGIN PANEL
========================= */

.login-panel {
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 455px;

    padding: 46px 46px 38px;

    border: 1px solid rgba(220, 227, 237, 0.9);

    border-radius: 26px;

    background:
        rgba(255,255,255,0.92);

    box-shadow:
        0 30px 80px rgba(25, 45, 75, 0.10),
        0 5px 20px rgba(25, 45, 75, 0.04);

    backdrop-filter: blur(20px);
}


/* =========================
   MOBILE BRAND
========================= */

.mobile-brand {
    display: none;
}


/* =========================
   LOGIN HEADER
========================= */

.login-header {
    margin-bottom: 32px;
}

.login-label {
    color: #2563eb;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.7px;
}

.login-header h2 {
    margin: 8px 0 7px;

    font-size: 31px;

    letter-spacing: -1px;
}

.login-header p {
    margin: 0;

    color: #8a94a4;

    font-size: 13px;
}


/* =========================
   FORM
========================= */

.field {
    margin-bottom: 21px;
}

.field label {
    display: block;

    margin-bottom: 8px;

    color: #344054;

    font-size: 12px;
    font-weight: 650;
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    height: 54px;

    padding:
        0 48px;

    border: 1px solid #e0e6ee;

    border-radius: 13px;

    outline: none;

    background: #fbfcfe;

    color: #172033;

    font-size: 13px;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.input-wrap input:hover {
    border-color: #cbd5e1;
}

.input-wrap input:focus {
    background: #ffffff;

    border-color: #5b8def;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.09);
}

.input-wrap input::placeholder {
    color: #a9b2bf;
}

.input-icon {
    position: absolute;

    left: 17px;
    top: 50%;

    transform: translateY(-50%);

    color: #9ba6b5;

    font-size: 15px;

    pointer-events: none;
}

.input-icon.lock {
    width: 12px;
    height: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1.5px solid #9ba6b5;
    border-radius: 3px;

    font-size: 0;
}

.input-icon.lock::before {
    content: "";

    position: absolute;

    width: 7px;
    height: 6px;

    top: -6px;

    border: 1.5px solid #9ba6b5;
    border-bottom: 0;

    border-radius: 7px 7px 0 0;
}


/* =========================
   EYE
========================= */

.eye {
    position: absolute;

    right: 10px;
    top: 50%;

    width: 36px;
    height: 36px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: #98a3b2;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.eye svg {
    width: 18px;
    height: 18px;
}

.eye:hover {
    background: #eef3f9;
    color: #2563eb;
}


/* =========================
   BUTTON
========================= */

.login-button {
    position: relative;

    width: 100%;
    height: 54px;

    margin-top: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #3478f6,
            #1d5cdb
        );

    color: white;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 22px rgba(37, 99, 235, 0.22);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease;
}

.login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 13px 27px rgba(37, 99, 235, 0.27);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.button-arrow {
    position: absolute;

    right: 17px;

    font-size: 20px;
    font-weight: 400;

    opacity: 0.8;
}


/* =========================
   ERROR
========================= */

.login-error {
    margin-bottom: 15px;
    padding: 12px 14px;

    border: 1px solid #ffd7d7;
    border-radius: 11px;

    background: #fff7f7;

    color: #b42318;

    font-size: 12px;
    line-height: 1.45;
}


/* =========================
   FORGOT
========================= */

.forgot {
    width: 100%;

    margin-top: 20px;

    border: 0;

    background: transparent;

    color: #4775c9;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.forgot:hover {
    color: #1d5cdb;
}


/* =========================
   SECURE
========================= */

.secure-note {
    margin-top: 31px;
    padding-top: 22px;

    border-top: 1px solid #edf0f4;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #a0a9b7;

    font-size: 10px;
}

.secure-note svg {
    width: 14px;
    height: 14px;
}


/* =========================
   SPINNER
========================= */

.spinner {
    width: 16px;
    height: 16px;

    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white;

    border-radius: 50%;

    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .login-layout {
        grid-template-columns: 1fr;

        width: min(500px, calc(100% - 32px));

        padding: 35px 0;
    }

    .brand-panel {
        display: none;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;

        margin-bottom: 35px;
    }

    .brand-icon.small {
        width: 40px;
        height: 40px;

        border-radius: 12px;
    }

    .mobile-brand strong {
        font-size: 16px;
    }

    .login-card {
        max-width: none;
    }
}


@media (max-width: 480px) {

    .login-layout {
        width: calc(100% - 24px);
    }

    .login-card {
        padding: 32px 24px 28px;

        border-radius: 21px;
    }

    .login-header h2 {
        font-size: 28px;
    }
}
