﻿:root {
    --login-primary: #2563eb;
    --login-primary-dark: #1d4ed8;
    --login-navy: #0f172a;
    --login-muted: #64748b;
    --login-border: #e2e8f0;
    --login-background: #f8fafc;
}

.login-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 45px 0;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, .07), transparent 30%), #f8fafc;
}

.login-shell {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    max-width: 1100px;
    min-height: 650px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(15, 23, 42, .08), 0 5px 20px rgba(15, 23, 42, .04);
}


/* --------------------------------
   Brand panel
-------------------------------- */

.login-brand-panel {
    position: relative;
    overflow: hidden;
    padding: 52px;
    color: #fff;
    background: linear-gradient(145deg, #0f172a 0%, #172554 55%, #1e3a8a 100%);
}

.brand-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.brand-mark,
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.4px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 20px;
}

.brand-message {
    margin: auto 0;
    max-width: 460px;
}

.brand-eyebrow {
    display: inline-block;
    margin-bottom: 17px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #93c5fd;
}

.brand-message h1 {
    margin-bottom: 20px;
    font-size: clamp(38px, 4vw, 54px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -2px;
}

    .brand-message h1 span {
        display: block;
        color: #93c5fd;
    }

.brand-message > p {
    max-width: 420px;
    margin-bottom: 38px;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.7;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: #bfdbfe;
}

.brand-feature strong,
.brand-feature small {
    display: block;
}

.brand-feature strong {
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 600;
}

.brand-feature small {
    color: #94a3b8;
    font-size: 13px;
}

.brand-footer {
    color: #64748b;
    font-size: 12px;
}

    .brand-footer span {
        margin: 0 8px;
    }

.brand-decoration {
    position: absolute;
    border-radius: 50%;
    background: #2563eb;
    opacity: .12;
    filter: blur(1px);
}

.decoration-one {
    width: 330px;
    height: 330px;
    right: -170px;
    top: -130px;
}

.decoration-two {
    width: 250px;
    height: 250px;
    left: -130px;
    bottom: -120px;
}


/* --------------------------------
   Form
-------------------------------- */

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px 70px;
    background: #fff;
}

.login-form-container {
    width: 100%;
    max-width: 410px;
}

.mobile-brand {
    display: none;
    margin-bottom: 45px;
    color: var(--login-navy);
}

.login-heading {
    margin-bottom: 35px;
}

.welcome-label {
    display: block;
    margin-bottom: 10px;
    color: var(--login-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.login-heading h2 {
    margin: 0 0 10px;
    color: var(--login-navy);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.8px;
}

.login-heading p {
    margin: 0;
    color: var(--login-muted);
    font-size: 14px;
}

.login-field {
    margin-bottom: 22px;
}

    .login-field > label,
    .password-label label {
        display: block;
        margin-bottom: 8px;
        color: #334155;
        font-size: 13px;
        font-weight: 600;
    }

.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .password-label a {
        margin-bottom: 8px;
        color: var(--login-primary);
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
    }

        .password-label a:hover {
            text-decoration: underline;
        }

.input-wrapper {
    position: relative;
}

    .input-wrapper .form-control {
        height: 52px;
        padding: 0 46px;
        border: 1px solid var(--login-border);
        border-radius: 11px;
        color: var(--login-navy);
        font-size: 14px;
        box-shadow: none;
        transition: border-color .2s ease, box-shadow .2s ease;
    }

        .input-wrapper .form-control::placeholder {
            color: #94a3b8;
        }

        .input-wrapper .form-control:focus {
            border-color: #60a5fa;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, .09);
        }

.input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 17px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

.password-input {
    padding-right: 48px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    padding: 5px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    line-height: 1;
}

    .password-toggle:hover {
        color: #475569;
    }

.validation-message {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

.login-validation:empty {
    display: none;
}

.login-validation {
    padding: 10px 13px;
    margin-bottom: 20px;
    border-radius: 9px;
    font-size: 13px;
}

.login-options {
    display: flex;
    align-items: center;
    margin: 5px 0 27px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
}

    .remember-me .form-check-input {
        margin: 0;
    }

.btn-login {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 11px;
    background: var(--login-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

    .btn-login:hover {
        background: var(--login-primary-dark);
        box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
    }

    .btn-login:active {
        transform: translateY(1px);
    }

.login-help {
    margin-top: 32px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

    .login-help span {
        display: block;
        margin-bottom: 5px;
    }

    .login-help a {
        color: #475569;
        font-weight: 600;
        text-decoration: none;
    }

        .login-help a:hover {
            color: var(--login-primary);
        }


.btn-login:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

/* --------------------------------
   Responsive
-------------------------------- */

@media (max-width: 991.98px) {

    .login-page {
        padding: 25px 15px;
    }

    .login-shell {
        display: block;
        max-width: 540px;
        min-height: auto;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        padding: 55px;
    }

    .mobile-brand {
        display: flex;
    }
}

@media (max-width: 575.98px) {

    .login-page {
        min-height: 100vh;
        padding: 0;
        background: #fff;
    }

        .login-page .container {
            padding: 0;
        }

    .login-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 35px 25px;
    }

    .mobile-brand {
        margin-bottom: 55px;
    }

    .login-heading h2 {
        font-size: 27px;
    }
}
