/* =========================================================
   LOGIN — MODERN THEME
   ========================================================= */

:root {
    --lg-bg:        #f4f6fb;
    --lg-surface:   #ffffff;
    --lg-border:    #e7eaf1;

    --lg-text:      #1c2130;
    --lg-text-soft: #6b7280;
    --lg-text-faint:#9aa2b1;

    --lg-primary:      #3b6fe0;
    --lg-primary-dark: #22345c;
    --lg-primary-hover:#2f5bc4;
    --lg-primary-soft: #eaf0fe;

    --r-md: 12px;
    --r-lg: 20px;
    --r-pill: 999px;

    --shadow-md: 0 8px 24px rgba(20, 24, 38, .08);
    --shadow-lg: 0 24px 60px rgba(20, 24, 38, .16);

    --t-fast: .15s ease;

    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

.login-body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--lg-bg);
    color: var(--lg-text);
    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   SCREEN LAYOUT — split panel
   ========================================================= */

.login-screen {
    display: flex;
    min-height: 100vh;
}

/* ---- Left: brand / hero panel ---- */

.login-hero {
    flex: 1 1 46%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 56px;
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: 0 0 0 20px;
    background:
            radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .08), transparent 45%),
            radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .06), transparent 45%),
            linear-gradient(155deg, var(--lg-primary-dark), #101528 78%);
}

.login-hero-content {
    max-width: 420px;
}

.login-hero-badge {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: 20px;
    margin-bottom: 28px;
}

.login-hero-badge>img{
    height: 48px;
    aspect-ratio: 1/1;
}

.login-hero-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
    margin: 0 0 14px;
}

.login-hero-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .72);
    margin: 0 0 32px;
}

.login-hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-hero-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .88);
}

.login-hero-points i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    font-size: 10px;
}


/* ---- Right: form panel ---- */

.login-panel {
    flex: 1 1 54%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--lg-bg);
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px 36px 34px;
}

.login-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-card-icon {
    display: none; /* shown only when the hero panel is hidden, see responsive rules */
}

.login-card-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 6px;
}

.login-card-subtitle {
    font-size: 13.5px;
    color: var(--lg-text-soft);
    margin: 0;
}


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

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lg-text);
    margin-bottom: 6px;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    font-size: 13px;
    color: var(--lg-text-faint);
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    font-size: 14px;
    color: var(--lg-text);
    background: #fbfcfe;
    border: 1px solid var(--lg-border);
    border-radius: var(--r-md);
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}

.login-input::placeholder {
    color: var(--lg-text-faint);
}

.login-input:focus {
    background: #fff;
    border-color: var(--lg-primary);
    box-shadow: 0 0 0 4px var(--lg-primary-soft);
}

.login-actions {
    margin-top: 4px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--lg-primary), var(--lg-primary-hover));
    border: 0;
    border-radius: var(--r-pill);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(59, 111, 224, .32);
    transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
}

.login-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 24px rgba(59, 111, 224, .4);
}

.login-btn:active {
    transform: scale(.98);
}

.login-btn:focus-visible {
    outline: 2px solid var(--lg-primary-dark);
    outline-offset: 3px;
}

.login-footer-note {
    margin-top: 22px;
    font-size: 12px;
    color: var(--lg-text-faint);
    text-align: center;
}


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

@media (max-width: 900px) {

    .login-hero {
        display: none;
    }

    .login-panel {
        flex: 1 1 100%;
        padding: 40px 20px;
    }

    .login-card-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        margin: 0 auto 18px;
        border-radius: var(--r-md);
        background: var(--lg-primary-soft);
        color: var(--lg-primary);
        font-size: 19px;
    }
}

@media (max-width: 420px) {

    .login-card {
        padding: 30px 22px 26px;
        border-radius: var(--r-md);
    }
}