﻿
/* ==========================================
   4SL MODERN AUTHENTICATION DESIGN
========================================== */

:root {
    --auth-primary: #155eef;
    --auth-primary-dark: #1046c5;
    --auth-navy: #102d69;
    --auth-text: #172033;
    --auth-muted: #697586;
    --auth-border: #dce3ed;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100%;
    font-family: 'IBM Plex Sans', sans-serif !important;
}

body {
    background: #ffffff;
}

.auth-page,
.auth-page * {
    box-sizing: border-box;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    overflow: hidden;
}

/* LEFT SECTION */

.auth-left {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 55px 35px;
    background: #ffffff;
}

.auth-left-inner {
    width: 100%;
    max-width: 430px;
}

.auth-mobile-brand {
    display: none;
    text-align: center;
    margin-bottom: 35px;
}

    .auth-mobile-brand img {
        max-height: 55px;
        max-width: 190px;
        object-fit: contain;
    }

.auth-form-shell {
    width: 100%;
    background: #ffffff;
}

.auth-heading {
    margin-bottom: 36px;
}

.auth-small-label {
    display: inline-block;
    color: var(--auth-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 13px;
}

.auth-heading h1 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0;
}

.auth-heading p {
    color: var(--auth-muted);
    font-size: 15px;
    margin-top: 10px;
}

/* INPUT FIELDS */

.auth-field {
    margin-bottom: 23px;
}

    .auth-field label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #344054;
        margin-bottom: 9px;
    }

.auth-input-wrapper {
    position: relative;
}

    .auth-input-wrapper > i {
        position: absolute;
        top: 50%;
        left: 16px;
        transform: translateY(-50%);
        color: #98a2b3;
        font-size: 17px;
        z-index: 2;
    }

.auth-input {
    width: 100% !important;
    height: 53px !important;
    padding: 10px 45px !important;
    border: 1px solid var(--auth-border) !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    color: var(--auth-text) !important;
    box-shadow: none !important;
    transition: all .25s ease;
}

    .auth-input::placeholder {
        color: #a0a9b8;
    }

    .auth-input:focus {
        border-color: var(--auth-primary) !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(21, 94, 239, .10) !important;
    }

.auth-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #98a2b3;
    cursor: pointer;
    z-index: 3;
    font-size: 16px;
}

/* OPTIONS */

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 5px 0 27px;
    font-size: 13px;
}

.auth-checkbox {
    color: #475467;
}

    .auth-checkbox input {
        margin-right: 6px;
        accent-color: var(--auth-primary);
    }

    .auth-checkbox label {
        margin: 0;
        cursor: pointer;
        font-weight: 400;
    }

.auth-link {
    color: var(--auth-primary);
    font-weight: 600;
    text-decoration: none !important;
}

    .auth-link:hover {
        color: var(--auth-primary-dark);
    }

/* BUTTON */

.auth-button-container {
    width: 100%;
    margin: 12px 0;
}

.auth-submit {
    width: 100%;
    height: 53px;
    border: none !important;
    border-radius: 9px !important;
    background: var(--auth-primary) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer;
    transition: all .25s ease;
}

    .auth-submit:hover {
        background: var(--auth-primary-dark) !important;
        box-shadow: 0 7px 18px rgba(21, 94, 239, .22);
    }

/* TERMS */

.auth-terms {
    margin-top: 27px;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    color: #98a2b3;
}

    .auth-terms a {
        color: var(--auth-primary);
        font-weight: 600;
        text-decoration: none;
    }

/* OTP */

.auth-otp-section {
    margin-top: 25px;
}

.auth-otp-timer {
    text-align: right;
    color: #e04444;
    font-size: 13px;
    margin: 10px 0;
}

.auth-verify-btn {
    margin-top: 12px;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.auth-individual-mode {
    width: 100%;
}

/* FORGOT PASSWORD MODAL */

.auth-modal {
    border: none;
    border-radius: 14px;
    overflow: hidden;
}

    .auth-modal .modal-header {
        padding: 20px 25px;
        border-bottom: 1px solid #edf0f5;
    }

    .auth-modal .modal-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--auth-text);
    }

    .auth-modal .modal-body {
        padding: 25px;
    }

    .auth-modal .modal-footer {
        padding: 20px 25px;
        display: block;
    }

.auth-modal-actions {
    display: flex;
    gap: 10px;
}

    .auth-modal-actions .auth-submit {
        flex: 1;
    }

.auth-cancel {
    padding: 0 25px;
    border: 1px solid #dce3ed;
    border-radius: 9px;
    background: #ffffff;
    color: #475467;
    font-weight: 600;
}

.auth-note {
    margin-top: 15px;
}

/* ==========================================
   RIGHT BRANDING PANEL
========================================== */

.auth-right {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #ffffff;
    border-radius: 35px 0 0 35px;
    background: linear-gradient( 135deg, #1554c7 0%, #123e91 48%, #091e50 100% );
}

.auth-right-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 45px 55px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand img {
    max-height: 58px;
    max-width: 180px;
    object-fit: contain;
    padding: 8px;
    background: #ffffff;
    border-radius: 10px;
}

.auth-presentation {
    max-width: 570px;
    margin: 25px auto;
    width: 100%;
}

.auth-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 10px 17px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.10);
    border-radius: 50px;
    font-size: 13px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.auth-status-dot {
    height: 9px;
    width: 9px;
    background: #42e5a2;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(66,229,162,.8);
}

.auth-presentation h2 {
    color: #ffffff;
    font-size: clamp(36px, 3.5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.auth-description {
    color: #d5e3ff;
    font-size: 16px;
    line-height: 1.8;
    max-width: 510px;
}

/* ILLUSTRATION */

.auth-illustration {
    position: relative;
    height: 330px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-shield {
    position: relative;
    width: 190px;
    height: 190px;
    border-radius: 45px;
    transform: rotate(-5deg);
    background: linear-gradient( 145deg, rgba(255,255,255,.22), rgba(255,255,255,.04) );
    border: 1px solid rgba(255,255,255,.25);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 25px 70px rgba(0,0,0,.16);
}

    .auth-shield > i {
        font-size: 105px;
        color: rgba(255,255,255,.9);
    }

.auth-shield-check {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    background: #22c58b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 700;
}

.auth-info-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 13px;
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

    .auth-info-card h4 {
        color: #ffffff;
        font-size: 13px;
        font-weight: 600;
        margin: 0 0 5px;
    }

    .auth-info-card p {
        color: #d5e3ff;
        font-size: 11px;
        margin: 0;
    }

.auth-card-icon {
    height: 38px;
    width: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,.17);
    color: #ffffff;
}

.auth-card-one {
    top: 15px;
    right: 0;
}

.auth-card-two {
    bottom: 20px;
    left: 0;
}

.auth-card-three {
    bottom: 95px;
    right: -10px;
}

/* FEATURES */

.auth-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #d5e3ff;
    font-size: 12px;
}

    .auth-feature-list i {
        color: #45e0a2;
        margin-right: 5px;
    }

.auth-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #c4d6f8;
    font-size: 12px;
}

/* BACKGROUND DECORATIONS */

.auth-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    filter: blur(2px);
}

.auth-decoration-one {
    width: 350px;
    height: 350px;
    top: -150px;
    right: -100px;
}

.auth-decoration-two {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -120px;
}

.auth-decoration-three {
    width: 180px;
    height: 180px;
    top: 40%;
    right: 5%;
    background: rgba(255,255,255,.035);
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 991px) {

    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-left {
        min-height: 100vh;
        padding: 40px 25px;
    }

    .auth-left-inner {
        max-width: 450px;
    }

    .auth-mobile-brand {
        display: block;
    }

    .auth-right {
        display: none;
    }
}

@media (max-width: 575px) {

    .auth-left {
        padding: 30px 20px;
    }

    .auth-heading {
        margin-bottom: 28px;
    }

        .auth-heading h1 {
            font-size: 30px;
        }

        .auth-heading p {
            font-size: 14px;
        }

    .auth-input {
        height: 50px !important;
    }

    .auth-options {
        font-size: 12px;
    }

    .auth-terms {
        font-size: 11px;
    }

    .auth-footer {
        font-size: 10px;
    }
}
