/* =========================================================
SXPO INDIA - SUPER ADMIN LOGIN
Light Professional Enterprise Theme
========================================================= */
:root {
    --sxpo-primary: #2563eb;
    --sxpo-primary-dark: #1d4ed8;
    --sxpo-primary-light: #eff6ff;
    --sxpo-heading: #172033;
    --sxpo-text: #334155;
    --sxpo-muted: #64748b;
    --sxpo-muted-light: #94a3b8;
    --sxpo-page-bg: #eef2f7;
    --sxpo-surface: #ffffff;
    --sxpo-border: #dfe7ef;
    --sxpo-border-light: #e8edf3;
    --sxpo-success: #16a34a;
    --sxpo-danger: #dc2626;
}

.sxpo-login-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--sxpo-page-bg);
    color: var(--sxpo-text);
    font-family: var( --sxpo-font-family, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif );
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(440px, .75fr);
}

/* =========================================================
LEFT PLATFORM PANEL
========================================================= */

.login-platform-panel {
    display: flex;
    padding: 52px clamp(48px, 7vw, 120px);
    background: linear-gradient( 145deg, #edf4ff 0%, #f7faff 55%, #edf2f8 100% );
    border-right: 1px solid #dbe3ec;
}

.platform-content {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
}

/* =========================================================
BRAND
========================================================= */

.platform-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.platform-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    border-radius: 12px;
    background: linear-gradient( 135deg, #1d4ed8, #3b82f6 );
    box-shadow: 0 10px 22px rgba(37, 99, 235, .20);
}

    .platform-logo span {
        color: #ffffff;
        font-size: 23px;
        font-weight: 800;
    }

.platform-brand-name {
    color: var(--sxpo-heading);
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.25px;
}

.platform-brand-subtitle {
    margin-top: 3px;
    color: var(--sxpo-muted);
    font-size: 11px;
}

/* =========================================================
LEFT MAIN CONTENT
========================================================= */

.platform-main {
    margin: auto 0;
}

.platform-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 20px;
    padding: 8px 13px;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: var(--sxpo-primary);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1px;
}

.platform-main h1 {
    max-width: 620px;
    margin: 0 0 16px;
    color: var(--sxpo-heading);
    font-size: clamp(38px, 4vw, 56px);
    line-height: 1.1;
    letter-spacing: -1.8px;
    font-weight: 750;
}

    .platform-main h1 span {
        display: block;
        color: var(--sxpo-primary);
    }

.platform-description {
    max-width: 570px;
    margin: 0;
    color: var(--sxpo-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================================
PLATFORM OVERVIEW CARD
========================================================= */

.platform-preview {
    width: 100%;
    max-width: 590px;
    margin-top: 36px;
    padding: 22px;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
}

/* =========================================================
PREVIEW HEADER
========================================================= */

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sxpo-border-light);
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-title-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 10px;
    background: var(--sxpo-primary-light);
    color: var(--sxpo-primary);
}

.preview-title strong,
.preview-title span {
    display: block;
}

.preview-title strong {
    color: #1e293b;
    font-size: 12px;
    font-weight: 700;
}

.preview-title span {
    margin-top: 2px;
    color: var(--sxpo-muted-light);
    font-size: 10px;
}

.preview-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 9px;
    font-weight: 650;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

/* =========================================================
PREVIEW STATS
========================================================= */

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0;
}

.preview-stat {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e6ebf1;
    border-radius: 12px;
    background: #ffffff;
}

    .preview-stat span,
    .preview-stat strong {
        display: block;
    }

.stat-label {
    margin-bottom: 5px;
    color: var(--sxpo-muted-light);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.preview-stat strong {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
PREVIEW ACTIVITY
========================================================= */

.preview-activity {
    padding-top: 15px;
    border-top: 1px solid var(--sxpo-border-light);
}

.activity-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--sxpo-muted-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
}

    .activity-title i {
        color: var(--sxpo-primary);
        font-size: 13px;
    }

.activity-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 0;
}

.activity-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 9px;
    background: #f1f5f9;
    color: var(--sxpo-primary);
}

.activity-content {
    min-width: 0;
}

.activity-row strong,
.activity-row span {
    display: block;
}

.activity-row strong {
    color: #334155;
    font-size: 11px;
    font-weight: 650;
}

.activity-row span {
    margin-top: 2px;
    color: var(--sxpo-muted-light);
    font-size: 10px;
}

.activity-arrow {
    margin-left: auto;
    flex: 0 0 auto;
    color: #cbd5e1;
    font-size: 13px;
}

/* =========================================================
LEFT SECURITY
========================================================= */

.platform-security {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--sxpo-muted);
    font-size: 11px;
}

    .platform-security i {
        color: var(--sxpo-success);
        font-size: 14px;
    }

/* =========================================================
RIGHT LOGIN WORKSPACE
========================================================= */

.login-form-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px clamp(32px, 6vw, 100px);
    background: #ffffff;
    border-left: 1px solid var(--sxpo-border);
    box-shadow: -18px 0 45px rgba(15, 23, 42, .035);
}

.login-form-container {
    width: 100%;
    max-width: 430px;
}

/* =========================================================
MOBILE BRAND
========================================================= */

.login-mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

    .login-mobile-brand strong,
    .login-mobile-brand span {
        display: block;
    }

    .login-mobile-brand strong {
        color: var(--sxpo-heading);
        font-size: 16px;
        font-weight: 700;
    }

    .login-mobile-brand span {
        margin-top: 2px;
        color: var(--sxpo-muted);
        font-size: 11px;
    }

/* =========================================================
LOGIN HEADING
========================================================= */

.login-heading {
    margin-bottom: 28px;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--sxpo-primary);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.2px;
}

.login-heading h2 {
    margin: 0 0 9px;
    color: #111827;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -.8px;
    font-weight: 750;
}

.login-heading p {
    margin: 0;
    color: var(--sxpo-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
LOGIN CARD
========================================================= */

.login-card {
    padding: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
}

/* =========================================================
VALIDATION SUMMARY
========================================================= */

.login-validation-summary {
    margin-bottom: 20px;
    color: var(--sxpo-danger);
    font-size: 12px;
}

    .login-validation-summary ul {
        margin: 0;
        padding: 12px 14px 12px 30px;
        border: 1px solid #fecaca;
        border-radius: 10px;
        background: #fef2f2;
    }

/* =========================================================
FORM FIELDS
========================================================= */

.login-field {
    margin-bottom: 21px;
}

    .login-field label {
        display: block;
        margin-bottom: 8px;
        color: #334155;
        font-size: 12px;
        font-weight: 650;
    }

.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================================================
INPUT
========================================================= */

.login-input-wrapper {
    position: relative;
}

    .login-input-wrapper > i {
        position: absolute;
        z-index: 3;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 15px;
        pointer-events: none;
        transition: color .2s ease;
    }

.login-input {
    min-height: 52px;
    width: 100%;
    padding-left: 40px;
    border: 1px solid #cfd9e4;
    border-radius: 10px;
    background: #ffffff;
    color: #1e293b;
    font-size: 13px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .login-input::placeholder {
        color: #94a3b8;
    }

    .login-input:hover {
        border-color: #94a3b8;
    }

    .login-input:focus {
        border-color: var(--sxpo-primary);
        background: #ffffff;
        color: #1e293b;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
    }

.login-input-wrapper:focus-within > i {
    color: var(--sxpo-primary);
}

/* =========================================================
PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 9px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

    .password-toggle:hover {
        color: var(--sxpo-primary);
        background: #f1f5f9;
    }

    .password-toggle:focus-visible {
        outline: 2px solid var(--sxpo-primary);
        outline-offset: 2px;
    }

/* =========================================================
CAPS LOCK WARNING
========================================================= */

.caps-lock-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    color: #b45309;
    font-size: 11px;
}

/* =========================================================
FIELD VALIDATION
========================================================= */

.field-validation {
    display: block;
    margin-top: 6px;
    color: var(--sxpo-danger);
    font-size: 11px;
}

/* =========================================================
REMEMBER ME
========================================================= */

.login-options {
    margin: 3px 0 24px;
}

.login-checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: var(--sxpo-muted) !important;
    font-size: 11px !important;
    font-weight: 450 !important;
}

    .login-checkbox input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.checkbox-ui {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    position: relative;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    transition: all .18s ease;
}

.login-checkbox input:checked + .checkbox-ui {
    border-color: var(--sxpo-primary);
    background: var(--sxpo-primary);
}

    .login-checkbox input:checked + .checkbox-ui::after {
        content: "";
        position: absolute;
        top: 2px;
        left: 5px;
        width: 4px;
        height: 8px;
        border: solid #ffffff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.login-checkbox input:focus-visible + .checkbox-ui {
    outline: 2px solid rgba(37, 99, 235, .45);
    outline-offset: 2px;
}

/* =========================================================
LOGIN BUTTON
========================================================= */

.login-submit {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 10px;
    background: var(--sxpo-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

    .login-submit:hover {
        color: #ffffff;
        background: var(--sxpo-primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(37, 99, 235, .23);
    }

    .login-submit:active {
        transform: translateY(0);
    }

    .login-submit:focus-visible {
        outline: 3px solid rgba(37, 99, 235, .30);
        outline-offset: 3px;
    }

    .login-submit:disabled {
        opacity: .72;
        cursor: wait;
        transform: none;
    }

.login-submit-text,
.login-submit-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* =========================================================
SECURITY INFORMATION
========================================================= */

.login-security {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 14px 15px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
}

.security-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    border-radius: 9px;
    background: #eff6ff;
    color: var(--sxpo-primary);
}

.login-security strong,
.login-security span {
    display: block;
}

.login-security strong {
    margin-bottom: 3px;
    color: #334155;
    font-size: 11px;
    font-weight: 650;
}

.login-security span {
    color: var(--sxpo-muted);
    font-size: 10px;
    line-height: 1.55;
}

/* =========================================================
FOOTER
========================================================= */

.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--sxpo-border-light);
    color: var(--sxpo-muted-light);
    font-size: 10px;
}

/* =========================================================
RESPONSIVE : TABLET
========================================================= */

@media (max-width: 992px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-platform-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 48px 24px;
        border-left: 0;
        background: #f7f9fc;
    }

    .login-form-container {
        max-width: 460px;
    }

    .login-mobile-brand {
        display: flex;
    }
}

/* =========================================================
RESPONSIVE : MOBILE
========================================================= */

@media (max-width: 576px) {
    .login-form-panel {
        padding: 28px 16px;
    }

    .login-mobile-brand {
        margin-bottom: 30px;
    }

    .platform-logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .login-heading h2 {
        font-size: 29px;
    }

    .login-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .login-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* =========================================================
RESPONSIVE : SMALL HEIGHT DESKTOP
========================================================= */
@media (max-height: 780px) and (min-width: 993px) {
    .login-platform-panel,
    .login-form-panel {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .platform-preview {
        margin-top: 26px;
        padding: 18px;
    }

    .preview-stats {
        margin: 14px 0;
    }

    .activity-row {
        padding: 8px 0;
    }

    .login-heading {
        margin-bottom: 20px;
    }

    .login-card {
        padding: 25px;
    }
}

/* =========================================================
RESPONSIVE : LEFT PREVIEW
========================================================= */
@media (max-width: 1200px) and (min-width: 993px) {
    .login-platform-panel {
        padding-left: 50px;
        padding-right: 50px;
    }

    .platform-main h1 {
        font-size: clamp(36px, 4vw, 48px);
    }
}
