/**
 * login.css
 * ----------
 * Styling just for login.php. Kept in its own file (rather than mixed
 * into app-overrides.css) since it's a fairly different, custom-built
 * layout that only that one page uses.
 *
 * Colors are picked to match the app's maroon primary theme
 * (#8c1c2b / #5e1220 - see app-overrides.css for where the rest of
 * the app's blue-to-maroon override lives) so the login page feels
 * like part of the same app rather than a bolted-on design.
 */

body.login-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #150a0c 0%, #3a1119 55%, #5e1220 100%);
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 1.5rem;
}

.login-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 560px;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}

/* ---- Left panel: the actual sign-in form ---- */
.login-left {
    flex: 1 1 50%;
    padding: 2.75rem 3rem;
    display: flex;
    flex-direction: column;
}

.login-logo-circle {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #8c1c2b, #5e1220);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 .5rem 1rem rgba(94, 18, 32, 0.4);
}

.login-title {
    text-align: center;
    color: #8c1c2b;
    font-weight: 800;
    letter-spacing: .05rem;
    margin: 0;
    font-size: 1.6rem;
}

.login-subtitle {
    text-align: center;
    color: #858796;
    margin: .15rem 0 1.5rem;
    font-size: .9rem;
}

.login-info-box {
    display: flex;
    gap: .75rem;
    background: #f7e9ea;
    border-left: 4px solid #8c1c2b;
    border-radius: .5rem;
    padding: .85rem 1rem;
    margin-bottom: 1.25rem;
}

.login-info-box i {
    color: #8c1c2b;
    margin-top: .2rem;
}

.login-info-box strong {
    display: block;
    color: #5e1220;
    font-size: .9rem;
    margin-bottom: .15rem;
}

.login-info-box p {
    margin: 0;
    font-size: .82rem;
    color: #7a5a5e;
    line-height: 1.35;
}

.login-form label {
    font-weight: 700;
    font-size: .85rem;
    color: #3a3b45;
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .35rem;
}

.login-form label i {
    color: #8c1c2b;
    width: 1rem;
    text-align: center;
}

.login-form .form-control {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: .95rem;
    border-radius: .5rem;
    padding: .65rem .9rem;
    margin-bottom: 1.1rem;
    border: 1px solid #d1d3e2;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #8c1c2b;
    box-shadow: 0 0 0 .2rem rgba(140, 28, 43, .15);
}

.password-field-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 1.1rem;
}

.password-field-wrap .form-control {
    margin-bottom: 0;
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: .9rem;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #b7b9cc;
    background: none;
    border: none;
    padding: 0;
}

.password-toggle:hover {
    color: #858796;
}

.login-btn {
    width: 100%;
    border: none;
    border-radius: .5rem;
    padding: .8rem 1rem;
    font-weight: 800;
    letter-spacing: .05rem;
    color: #fff;
    background: linear-gradient(90deg, #5e1220, #8c1c2b 60%, #b23a4a);
    box-shadow: 0 .4rem 1rem rgba(140, 28, 43, .35);
    transition: opacity .15s ease-in-out;
}

.login-btn:hover {
    opacity: .92;
    color: #fff;
}

.login-footnote {
    text-align: center;
    color: #b7b9cc;
    font-size: .78rem;
    margin: .2rem 0;
}

.login-footnote i {
    margin-right: .3rem;
}

/* ---- Right panel: decorative illustration ---- */
.login-right {
    flex: 1 1 50%;
    position: relative;
    display: none;
    background: linear-gradient(160deg, #170b0d 0%, #3a121a 55%, #7a1c2a 100%);
    overflow: hidden;
}

@media (min-width: 768px) {
    .login-right {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Scattered dot texture, similar to the reference image's background */
.login-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, .35) 1.5px, transparent 1.5px),
        radial-gradient(rgba(255, 255, 255, .2) 1.5px, transparent 1.5px);
    background-size: 90px 90px, 130px 130px;
    background-position: 10px 20px, 60px 90px;
}

.deco-gif {
    position: relative;
    z-index: 1;
    width: 260px;
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, .35));
}

.deco-icon {
    position: absolute;
    color: rgba(255, 255, 255, .55);
    font-size: 1.4rem;
}

.deco-icon.lock { top: 18%; left: 14%; }
.deco-icon.wifi { top: 30%; right: 14%; }
.deco-icon.dot-a { top: 14%; right: 30%; width: 6px; height: 6px; background: rgba(255,255,255,.7); border-radius: 50%; font-size: 0; }
.deco-icon.dot-b { bottom: 20%; left: 20%; width: 5px; height: 5px; background: rgba(255,255,255,.5); border-radius: 50%; font-size: 0; }

@media (max-width: 767.98px) {
    .login-left {
        padding: 2rem 1.5rem;
    }
}
