/* ============================================================
   Auth page (login) -- modular split-screen modules
   ============================================================ */

/* ---- Shell ---- */
.auth-shell {
    display: flex;
    min-height: 100vh;
}

/* ---- Left: brand module ---- */
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 50%;
    padding: 3rem;
    overflow-y: auto;
    color: #fff;
    background-image: radial-gradient(circle at 18% 16%, rgba(79, 70, 229, .65) 0%, transparent 42%),
                      radial-gradient(circle at 82% 88%, rgba(6, 182, 212, .42) 0%, transparent 44%),
                      linear-gradient(135deg, var(--mrg-primary) 0%, var(--mrg-primary-dark) 62%, #1e1b4b 120%);
}

.auth-brand-inner {
    max-width: 460px;
    width: 100%;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    font-size: 1.9rem;
    color: var(--mrg-primary-dark);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
    margin-bottom: 1.4rem;
}

.auth-brand-name {
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -.4px;
    line-height: 1.15;
    margin-bottom: .4rem;
}

.auth-brand-sub {
    font-size: 1rem;
    opacity: .85;
    margin-bottom: 2rem;
}

.auth-modules {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .9rem;
    font-size: .8rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 2rem;
    backdrop-filter: blur(4px);
}

.auth-chip i {
    color: var(--mrg-accent);
}

.auth-brand-foot {
    margin-top: 2.4rem;
    font-size: .75rem;
    opacity: .6;
    letter-spacing: .4px;
    text-transform: uppercase;
}

/* ---- Right: form panel ---- */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 50%;
    padding: 2rem 1.5rem;
    background: var(--mrg-bg);
}

.auth-panel-inner {
    width: 100%;
    max-width: 400px;
}

.auth-mobile-brand .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
}

.auth-card {
    padding: 2.25rem 2rem 1.6rem;
    border-radius: 1rem;
    background: var(--mrg-surface);
    border: 1px solid var(--mrg-border);
    box-shadow: 0 8px 28px rgba(31, 36, 55, .09);
}

.auth-card-head {
    margin-bottom: 1.6rem;
}

.auth-card-title {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 .25rem;
    color: var(--mrg-text);
}

.auth-card-sub {
    margin: 0;
    font-size: .875rem;
    color: var(--mrg-muted);
}

/* ---- Field modules ---- */
.auth-field {
    margin-bottom: 1.1rem;
    position: relative;
}

.auth-field .bi {
    position: absolute;
    left: 14px;
    top: 34px;
    z-index: 2;
    font-size: 1rem;
    color: var(--mrg-muted);
    pointer-events: none;
}

.auth-field .form-label {
    display: inline-block;
    margin-bottom: .3rem;
}

.auth-field .form-control {
    padding-left: 2.5rem;
    height: 46px;
    border-radius: .55rem;
    border-color: var(--mrg-border);
}

.auth-field textarea.form-control {
    height: auto;
}

/* ---- Options / submit ---- */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.3rem;
    font-size: .85rem;
}

.auth-submit {
    width: 100%;
    height: 46px;
    font-weight: 600;
    border-radius: .55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.auth-card-foot {
    margin-top: 1.5rem;
    text-align: center;
    font-size: .72rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--mrg-muted);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .auth-brand {
        display: none;
    }

    .auth-panel {
        flex: 1 1 100%;
    }
}

@media (max-height: 760px) {
    .auth-brand {
        padding: 2rem 3rem;
        align-items: flex-start;
    }

    .auth-logo {
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
    border-radius: inherit;
}

.auth-brand-name {
        font-size: 1.8rem;
    }

    .auth-brand-foot {
        margin-top: 1.6rem;
    }
}