:root {
    --blue-950: #021a3d;
    --blue-900: #05265b;
    --blue-800: #063878;
    --blue-700: #0a4ca1;
    --blue-100: #eaf1fb;
    --yellow: #ffc400;
    --white: #ffffff;
    --surface: #f5f7fb;
    --text: #122b55;
    --muted: #6c7687;
    --border: #dce3ed;
    --shadow: 0 26px 75px rgba(4, 34, 79, 0.17);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: var(--text);
    background: var(--surface);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(520px, 1.07fr) minmax(440px, 0.93fr);
}

/* Painel institucional */

.institutional-panel {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: var(--white);
    background:
        url("../assets/hero-school.jpg")
        center / cover
        no-repeat;
}

.institutional-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            145deg,
            rgba(2, 26, 61, 0.97) 0%,
            rgba(5, 49, 109, 0.91) 54%,
            rgba(5, 49, 109, 0.58) 100%
        );
}

.institutional-panel::before {
    content: "";
    position: absolute;
    z-index: 1;
    right: -130px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 196, 0, 0.36);
    border-radius: 50%;
}

.institutional-panel::after {
    content: "";
    position: absolute;
    z-index: 1;
    right: -40px;
    bottom: -260px;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.institutional-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 54px clamp(42px, 5vw, 78px) 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    width: fit-content;
}

.brand img {
    width: min(390px, 72%);
    height: auto;
    object-fit: contain;
}

.institutional-message {
    max-width: 650px;
    margin: 72px 0 40px;
}

.yellow-line {
    display: block;
    width: 76px;
    height: 5px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--yellow);
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--yellow);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.institutional-message h1 {
    max-width: 610px;
    margin: 0;
    font-size: clamp(3.05rem, 5.1vw, 5.65rem);
    line-height: 0.99;
    letter-spacing: -0.055em;
}

.institutional-message h1 strong {
    display: block;
    margin-top: 10px;
    font-size: 0.68em;
    font-weight: 700;
}

.description {
    max-width: 560px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
    line-height: 1.75;
}

.benefits {
    margin-top: 37px;
    padding-top: 27px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.benefit-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(255, 196, 0, 0.33);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--yellow);
    background: rgba(255, 196, 0, 0.08);
}

.benefit div {
    display: grid;
    gap: 5px;
}

.benefit strong {
    font-size: 0.76rem;
    line-height: 1.4;
}

.benefit small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.65rem;
    line-height: 1.5;
}

.institutional-footer {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.68rem;
}

/* Painel de acesso */

.access-panel {
    min-height: 100vh;
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at top right,
            rgba(10, 76, 161, 0.11),
            transparent 32%
        ),
        var(--white);
}

.access-card {
    width: min(100%, 480px);
}

.mobile-brand {
    display: none;
}

.access-heading {
    text-align: center;
}

.access-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 21px;
    border: 1px solid #dce7f7;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--blue-700);
    background: #f0f5fc;
    font-size: 1.5rem;
}

.access-label {
    margin: 0 0 9px;
    color: var(--blue-700);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.access-heading h2 {
    margin: 0;
    color: var(--blue-900);
    font-size: clamp(2.15rem, 4vw, 3.05rem);
    line-height: 1.06;
    letter-spacing: -0.048em;
}

.access-heading > p:last-child {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.65;
}

.login-form {
    margin-top: 34px;
    display: grid;
    gap: 21px;
}

.form-group {
    display: grid;
    gap: 9px;
}

.form-group label {
    color: var(--blue-900);
    font-size: 0.79rem;
    font-weight: 700;
}

.label-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.label-line a {
    color: var(--blue-700);
    font-size: 0.69rem;
    font-weight: 700;
}

.label-line a:hover {
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    transform: translateY(-50%);
    color: #8793a5;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    min-height: 57px;
    padding: 0 52px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    color: var(--text);
    background: #fbfcfe;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.input-wrapper input::placeholder {
    color: #9aa4b3;
}

.input-wrapper input:focus {
    border-color: var(--blue-700);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(10, 76, 161, 0.1);
}

.password-wrapper input {
    padding-right: 58px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 9px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    color: var(--blue-700);
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: var(--blue-100);
}

.remember-option {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.72rem;
    cursor: pointer;
}

.remember-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--blue-700);
}

.login-button {
    min-height: 57px;
    border: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--blue-700),
            var(--blue-950)
        );
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    box-shadow: 0 14px 29px rgba(5, 38, 91, 0.22);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.login-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(5, 38, 91, 0.26);
}

.divider {
    margin: 29px 0 18px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 13px;
    color: #929dac;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    background: var(--border);
}

.register-button {
    min-height: 76px;
    padding: 14px 17px;
    border: 1px solid #e0e7f0;
    border-radius: 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    background: #f7f9fc;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}

.register-button:hover {
    border-color: #bdcde3;
    background: #f0f5fc;
    transform: translateY(-1px);
}

.register-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--blue-700);
    background: #e7effa;
    font-size: 1.22rem;
}

.register-text {
    display: grid;
    gap: 4px;
}

.register-text small {
    color: var(--muted);
    font-size: 0.69rem;
}

.register-text strong {
    color: var(--blue-700);
    font-size: 0.84rem;
}

.register-button > i {
    color: var(--blue-700);
    font-size: 0.75rem;
}

.support-box {
    margin-top: 23px;
    padding: 14px 16px;
    border-radius: 11px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    background: #f8fafc;
}

.support-box i {
    margin-top: 3px;
    color: var(--blue-700);
}

.support-box p {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.55;
}

.privacy-text {
    max-width: 420px;
    margin: 20px auto 0;
    color: #8c96a5;
    text-align: center;
    font-size: 0.61rem;
    line-height: 1.55;
}

/* Responsividade */

@media (max-width: 1040px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .institutional-panel {
        min-height: 420px;
    }

    .institutional-content {
        min-height: 420px;
        padding: 37px 34px;
    }

    .institutional-message {
        margin: 55px 0 20px;
    }

    .institutional-message h1 {
        font-size: clamp(2.7rem, 7vw, 4.3rem);
    }

    .brand img {
        width: min(330px, 70%);
    }

    .institutional-footer {
        display: none;
    }

    .access-panel {
        min-height: auto;
        padding: 58px 28px;
    }
}

@media (max-width: 700px) {
    .institutional-panel {
        display: none;
    }

    .access-panel {
        min-height: 100vh;
        padding: 30px 20px;
        align-items: flex-start;
    }

    .access-card {
        padding-top: 8px;
    }

    .mobile-brand {
        display: flex;
        justify-content: center;
        margin-bottom: 36px;
    }

    .mobile-brand img {
        width: min(280px, 78%);
        height: auto;
    }
}

@media (max-width: 430px) {
    .access-panel {
        padding-inline: 17px;
    }

    .access-heading h2 {
        font-size: 2.15rem;
    }

    .label-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}



/*
====================== PARA O RESET DE SENHA ================================
*/
.reset-information {
    margin: 0 0 25px;
    padding: 16px 17px;
    border: 1px solid #d9e6f7;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    color: #102b58;
    background: #f3f7fd;
}

.reset-information > i {
    margin-top: 2px;
    color: #0a4ca1;
    font-size: 1.1rem;
}

.reset-information div {
    display: grid;
    gap: 5px;
}

.reset-information strong {
    color: #05265b;
    font-size: 0.78rem;
}

.reset-information p {
    margin: 0;
    color: #687386;
    font-size: 0.7rem;
    line-height: 1.55;
}

.reset-alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid #f2bcbc;
    border-radius: 11px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #a61b1b;
    background: #fff3f3;
    font-size: 0.76rem;
    line-height: 1.5;
}

.reset-alert i {
    margin-top: 2px;
}

.password-help {
    margin-top: 7px;
    display: block;
    color: #687386;
    font-size: 0.68rem;
    line-height: 1.5;
}

.password-match {
    min-height: 18px;
    margin-top: 6px;
    display: block;
    font-size: 0.68rem;
}

.password-match.valid {
    color: #137333;
}

.password-match.invalid {
    color: #a61b1b;
}

.reset-success {
    padding: 14px 0 4px;
    text-align: center;
}

.reset-success-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #137333;
    background: #e8f6ec;
    font-size: 2.2rem;
}

.reset-success h3 {
    margin: 0 0 10px;
    color: #05265b;
    font-size: 1.45rem;
    font-weight: 800;
}

.reset-success p {
    margin: 0 0 25px;
    color: #687386;
    font-size: 0.8rem;
    line-height: 1.6;
}

.reset-success .login-button {
    text-decoration: none;
}

.invalid-link {
    padding: 10px 0;
    text-align: center;
}

.invalid-link-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #a61b1b;
    background: #fff0f0;
    font-size: 1.8rem;
}

.invalid-link h3 {
    margin: 0 0 10px;
    color: #05265b;
    font-size: 1.3rem;
    font-weight: 800;
}

.invalid-link p {
    margin: 0 0 24px;
    color: #687386;
    font-size: 0.78rem;
    line-height: 1.6;
}

.secondary-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #0a4ca1;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.secondary-link:hover {
    color: #05265b;
    text-decoration: none;
}