/* =========================================================
   LOGIN — ESTOQUE ESCOLAR
   Carregado após Bootstrap e style.css.
   ========================================================= */

.login-page {
    --login-navy: #172f50;
    --login-navy-light: #21466f;
    --login-blue: #2563eb;
    --login-text: #1e293b;
    --login-muted: #64748b;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin: 0;
    background:
        radial-gradient(circle at 13% 14%, rgba(59, 130, 246, .075), transparent 27rem),
        #f3f6fa;
}

.login-page *,
.login-page *::before,
.login-page *::after {
    box-sizing: border-box;
}

.login-shell {
    width: min(100%, 1040px);
    min-height: 570px;
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(15, 35, 60, .10);
}

.login-brand-panel {
    position: relative;
    isolation: isolate;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 48px 26px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 16%, rgba(91, 151, 218, .19), transparent 17rem),
        linear-gradient(145deg, #1c3c62 0%, #172f50 58%, #122943 100%);
}

.login-brand-panel::before,
.login-brand-panel::after {
    position: absolute;
    z-index: -1;
    right: -112px;
    bottom: 42px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.login-brand-panel::before {
    right: -54px;
    bottom: 98px;
    width: 205px;
    height: 205px;
}

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

.brand-logo {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 12px;
    background: rgba(255, 255, 255, .10);
    color: #fff;
    font-size: 24px;
}

.brand-eyebrow,
.login-kicker {
    display: block;
    margin-bottom: 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
}

.brand-eyebrow {
    color: #a9c9ee;
}

.brand-heading h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(29px, 3vw, 36px);
    font-weight: 650;
    line-height: 1.16;
    letter-spacing: -.045em;
}

.brand-heading p {
    max-width: 310px;
    margin: 0;
    color: #d0dced;
    font-size: 13px;
    line-height: 1.7;
}

.brand-features {
    display: grid;
    gap: 15px;
    margin-top: 42px;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0eaf6;
    font-size: 12px;
}

.brand-feature i {
    width: 18px;
    flex: 0 0 18px;
    color: #91b9e8;
    text-align: center;
    font-size: 14px;
}

.brand-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    color: #aebfd3;
    font-size: 10px;
}

.brand-footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #8eabc9;
}

.login-form-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px clamp(38px, 6vw, 76px) 22px;
    background: #fff;
}

.login-form-wrap {
    width: 100%;
    max-width: 390px;
    margin: auto;
}

.mobile-brand {
    display: none;
}

.login-heading {
    margin-bottom: 28px;
}

.login-kicker {
    margin-bottom: 8px;
    color: var(--login-blue);
}

.login-heading h2 {
    margin: 0 0 7px;
    color: var(--login-text);
    font-size: 27px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.04em;
}

.login-heading p {
    margin: 0;
    color: var(--login-muted);
    font-size: 12px;
}

.login-field {
    margin-bottom: 17px;
}

.login-form .form-label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap .input-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 2;
    color: #94a3b8;
    font-size: 13px;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input-wrap .login-input {
    width: 100%;
    height: 43px;
    padding: 9px 42px 9px 38px;
    border: 1px solid #dbe2ea;
    border-radius: 7px;
    background: #fff;
    color: var(--login-text);
    font-family: inherit;
    font-size: 12px;
    box-shadow: none;
}

.login-input-wrap .login-input::placeholder {
    color: #a0aaba;
}

.login-input-wrap .login-input:focus {
    border-color: #6a9df0;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.login-password-input {
    padding-right: 44px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    z-index: 3;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #8492a6;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: #f1f5f9;
    color: #334155;
}

.password-toggle:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 5px 0 22px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 450;
    cursor: pointer;
}

.remember-option .form-check-input {
    float: none;
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}

.forgot-link {
    color: var(--login-blue);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.forgot-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #2563eb;
    border-radius: 7px;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.login-submit:hover,
.login-submit:focus {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

.login-submit i {
    font-size: 11px;
}

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    color: #94a3b8;
    font-size: 10px;
}

.login-security-note i {
    color: #7c9bbd;
    font-size: 11px;
}

.login-copyright {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 16px;
    color: #a0aaba;
    font-size: 9px;
}

@media (max-width: 767.98px) {
    .login-page {
        padding: 18px;
    }

    .login-shell {
        width: min(100%, 460px);
        min-height: 0;
        display: block;
        border-radius: 13px;
    }

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

    .login-form-panel {
        min-height: 560px;
        padding: 30px 34px 20px;
    }

    .login-form-wrap {
        max-width: 370px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 35px;
        color: #1e3a5f;
        font-size: 14px;
        font-weight: 650;
        letter-spacing: -.02em;
    }

    .mobile-brand-icon {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        background: #eff6ff;
        color: #2563eb;
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .login-page {
        padding: 10px;
    }

    .login-form-panel {
        min-height: 540px;
        padding: 26px 22px 18px;
    }

    .login-options {
        align-items: center;
        gap: 8px;
    }

    .login-copyright {
        font-size: 8px;
    }
}

@media (max-height: 680px) and (min-width: 768px) {
    .login-page {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .login-shell {
        min-height: 540px;
    }

    .login-brand-panel {
        padding-top: 34px;
        padding-bottom: 20px;
    }

    .brand-logo {
        margin-bottom: 22px;
    }

    .brand-features {
        gap: 12px;
        margin-top: 28px;
    }

    .login-form-panel {
        padding-top: 28px;
        padding-bottom: 18px;
    }

    .login-heading {
        margin-bottom: 20px;
    }

    .login-field {
        margin-bottom: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-page *,
    .login-page *::before,
    .login-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
