﻿/* ============================================================
   GERENPIX — LOGIN
   ============================================================ */

.login-layout {
    min-height: 100vh;
}


/* ============================================================
   PAGE
   ============================================================ */

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #18191f;
}


/* ============================================================
   BRAND SIDE
   ============================================================ */

.login-brand {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient( circle at 80% 25%, rgba(99,91,255,.18), transparent 32% ), radial-gradient( circle at 15% 80%, rgba(99,91,255,.10), transparent 30% ), #101114;
    color: white;
}

    .login-brand::before {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        right: -260px;
        bottom: -220px;
        border: 1px solid rgba(255,255,255,.05);
        border-radius: 50%;
    }

    .login-brand::after {
        content: "";
        position: absolute;
        width: 350px;
        height: 350px;
        right: -180px;
        bottom: -130px;
        border: 1px solid rgba(99,91,255,.15);
        border-radius: 50%;
    }


.login-brand-content {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 42px 55px;
}


/* ============================================================
   LOGO
   ============================================================ */

.login-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    color: white;
    text-decoration: none;
    width: fit-content;
}

.login-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #635bff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

    .login-logo-mark span {
        width: 5px;
        display: block;
        background: white;
        border-radius: 3px;
    }

        .login-logo-mark span:first-child {
            height: 14px;
        }

        .login-logo-mark span:last-child {
            height: 22px;
        }

.login-logo-text {
    font-size: 20px;
    letter-spacing: -.6px;
}

    .login-logo-text strong {
        font-weight: 700;
    }

    .login-logo-text span {
        color: #908aff;
        font-weight: 700;
    }


/* ============================================================
   PRESENTATION
   ============================================================ */

.login-presentation {
    max-width: 490px;
    margin: auto 0;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    margin-bottom: 22px;
    border: 1px solid rgba(99,91,255,.3);
    border-radius: 999px;
    color: #a6a0ff;
    background: rgba(99,91,255,.08);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-presentation h1 {
    margin: 0;
    max-width: 500px;
    font-size: clamp(40px, 4vw, 58px);
    line-height: 1.05;
    letter-spacing: -2.5px;
    font-weight: 750;
}

    .login-presentation h1 span {
        color: #8983ff;
    }

.login-presentation > p {
    max-width: 430px;
    margin: 22px 0 35px;
    color: rgba(255,255,255,.58);
    font-size: 15px;
    line-height: 1.75;
}


/* ============================================================
   FEATURES
   ============================================================ */

.login-feature-list {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
}

.login-feature-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(99,91,255,.14);
    color: #928cff;
    font-size: 11px;
    font-weight: 700;
}


/* ============================================================
   FOOTER
   ============================================================ */

.login-brand-footer {
    color: rgba(255,255,255,.28);
    font-size: 10px;
}


/* ============================================================
   FORM SIDE
   ============================================================ */

.login-form-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
    background: #ffffff;
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
}


/* ============================================================
   MOBILE LOGO
   ============================================================ */

.login-mobile-logo {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 55px;
}


/* ============================================================
   HEADING
   ============================================================ */

.login-heading {
    margin-bottom: 32px;
}

    .login-heading h2 {
        margin: 0;
        font-size: 30px;
        letter-spacing: -1px;
        font-weight: 700;
        color: #18191f;
    }

    .login-heading p {
        margin: 9px 0 0;
        color: #777c87;
        font-size: 13px;
    }


/* ============================================================
   FIELD
   ============================================================ */

.login-field {
    margin-bottom: 21px;
}

    .login-field label {
        display: block;
        margin-bottom: 8px;
        color: #292c34;
        font-size: 12px;
        font-weight: 600;
    }

.login-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .login-label-row a {
        color: #635bff;
        font-size: 11px;
        font-weight: 600;
        text-decoration: none;
    }

        .login-label-row a:hover {
            text-decoration: underline;
        }


/* ============================================================
   INPUT
   ============================================================ */

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .login-input-wrapper > svg {
        position: absolute;
        left: 14px;
        width: 18px;
        height: 18px;
        color: #9a9faa;
        pointer-events: none;
    }

.login-input {
    width: 100%;
    height: 48px;
    padding: 0 15px 0 43px;
    border: 1px solid #dedfe4;
    border-radius: 9px;
    background: #ffffff;
    color: #18191f;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .login-input::placeholder {
        color: #b0b3ba;
    }

    .login-input:hover {
        border-color: #c8cad1;
    }

    .login-input:focus {
        border-color: #635bff;
        box-shadow: 0 0 0 3px rgba(99,91,255,.10);
    }


/* ============================================================
   OPTIONS
   ============================================================ */

.login-options {
    margin-top: 2px;
    margin-bottom: 23px;
}

.login-checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    color: #747985 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    cursor: pointer;
}

    .login-checkbox input {
        width: 15px;
        height: 15px;
        accent-color: #635bff;
        cursor: pointer;
    }


/* ============================================================
   SUBMIT
   ============================================================ */

.login-submit {
    width: 100%;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 9px;
    background: #635bff;
    color: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(99,91,255,.18);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

    .login-submit:hover:not(:disabled) {
        background: #574fe9;
        transform: translateY(-1px);
        box-shadow: 0 11px 28px rgba(99,91,255,.26);
    }

    .login-submit:disabled {
        opacity: .7;
        cursor: not-allowed;
    }

    .login-submit svg {
        width: 17px;
        height: 17px;
    }


/* ============================================================
   SPINNER
   ============================================================ */

.login-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: white;
    border-radius: 50%;
    animation: login-spin .7s linear infinite;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   DIVIDER
   ============================================================ */

.login-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 27px 0;
}

    .login-divider::before,
    .login-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #ececf0;
    }

    .login-divider span {
        color: #a2a5ad;
        font-size: 10px;
    }


/* ============================================================
   REGISTER
   ============================================================ */

.login-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #8a8e98;
    font-size: 12px;
}

    .login-register a {
        color: #635bff;
        font-weight: 600;
        text-decoration: none;
    }

        .login-register a:hover {
            text-decoration: underline;
        }


/* ============================================================
   SECURITY
   ============================================================ */

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 32px;
    color: #a0a4ad;
    font-size: 10px;
    text-align: center;
}

    .login-security svg {
        width: 15px;
        height: 15px;
        color: #8c8f99;
        flex-shrink: 0;
    }


/* ============================================================
   VALIDATION
   ============================================================ */

.login-field .validation-message {
    display: block;
    margin-top: 6px;
    color: #d94f4f;
    font-size: 10px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

    .login-page {
        grid-template-columns: 1fr;
    }

    .login-brand {
        display: none;
    }

    .login-form-section {
        padding: 35px 25px;
    }

    .login-mobile-logo {
        display: flex;
    }
}


@media (max-width: 500px) {

    .login-form-section {
        padding: 28px 20px;
    }

    .login-mobile-logo {
        margin-bottom: 45px;
    }

    .login-heading h2 {
        font-size: 26px;
    }
}
