/**
 * `/login` redesign — Apple/Meta-inspired split screen. Scoped entirely to
 * new `login-*` classes so the other auth pages (register, password reset,
 * etc.), which still use the legacy `.auth-*` classes, are untouched.
 */

.login-wrapper {
    min-height: calc(100vh - 60px - 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #f7f8fa;
}

.login-shell {
    width: 100%;
    max-width: 960px;
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .1);
    display: flex;
    min-height: 560px;
}

/* ------------------------------ brand panel --------------------------- */

.login-brand {
    flex: 1 1 42%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--primary-color, #536d79), #232c34);
    color: #fff;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-brand-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: .35;
}

.login-brand-blob-1 {
    width: 220px;
    height: 220px;
    top: -60px;
    right: -60px;
    background: #fff;
}

.login-brand-blob-2 {
    width: 260px;
    height: 260px;
    bottom: -100px;
    left: -80px;
    background: #8ab4c8;
}

.login-brand-content {
    position: relative;
    z-index: 1;
}

.login-brand-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: .9rem;
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.75rem;
}

.login-brand h3 {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: .75rem;
}

.login-brand p {
    opacity: .85;
    font-size: .95rem;
    max-width: 320px;
}

.login-brand-register {
    position: relative;
    z-index: 1;
    font-size: .9rem;
}

.login-brand-register a {
    color: #fff !important;
    font-weight: 700;
    text-decoration: underline;
}

.login-brand-features {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
}

.login-brand-features li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .88rem;
    opacity: .9;
    margin-bottom: .6rem;
}

.login-brand-features i {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    flex-shrink: 0;
}

/* -------------------------------- form panel --------------------------- */

.login-form-panel {
    flex: 1 1 58%;
    padding: 3rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-form-head {
    margin-bottom: 1.75rem;
}

.login-form-head h2 {
    font-weight: 800;
    font-size: 1.6rem;
    color: #1d2630;
    margin-bottom: .25rem;
}

.login-form-head p {
    color: #8a94a6;
    margin: 0;
}

.login-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

.login-social-links .btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #adb5bd;
    font-size: .8rem;
    margin-bottom: 1.5rem;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eef0f3;
}

.login-input-group {
    position: relative;
    margin-bottom: 1.1rem;
}

.login-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    z-index: 3;
}

.login-input-group .form-control {
    height: 3.1rem;
    padding-left: 2.75rem;
    border-radius: .7rem;
    border: 1px solid #e3e6f0;
    background: #f9fafb;
}

.login-input-group .form-control:focus {
    background: #fff;
    border-color: var(--primary-color, #536d79);
    box-shadow: none;
}

.login-input-group .invalid-feedback {
    margin-top: .35rem;
}

.login-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: .5rem;
}

.login-submit {
    height: 3.1rem;
    border-radius: .7rem;
    font-weight: 700;
    background: var(--primary-color, #536d79);
    border-color: var(--primary-color, #536d79);
    transition: transform .15s ease-in-out, box-shadow .15s ease-in-out;
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(83, 109, 121, .3);
}

@media (max-width: 767.98px) {
    .login-shell {
        flex-direction: column;
        min-height: 0;
    }

    .login-brand {
        padding: 2rem 1.75rem;
    }

    .login-brand-features {
        display: none;
    }

    .login-form-panel {
        padding: 2rem 1.75rem;
    }
}
