/* =========================================================
   INSTITUTO SOLIDARE
   LOGIN - IMPACTO SOLIDARE

   Paleta baseada no admin.css:
   Vinho principal: #8b0015
   Vinho hover:     #a3001d
   Vinho claro:     #c21836
   Fundo:           #f5f6fa
========================================================= */


/* =========================================================
   RESET E VARIÁVEIS
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8b0015;
    --primary-hover: #a3001d;
    --primary-light: #c21836;

    --primary-dark: #61000e;
    --primary-deep: #3d0009;
    --primary-black: #260005;

    --primary-soft: #f7e7ea;
    --primary-softer: #fff7f8;

    --gold: #d5a53e;
    --gold-light: #f1d58a;
    --gold-soft: rgba(213, 165, 62, 0.16);

    --white: #ffffff;

    --background: #f5f6fa;
    --background-soft: #fafbfc;

    --text-dark: #27282d;
    --text-medium: #696d76;
    --text-light: #969ba4;

    --border: #e2e4e8;
    --border-hover: #c8ccd2;

    --danger: #dc3545;
    --danger-dark: #991b1b;
    --danger-light: #fef2f2;

    --success: #198754;
    --success-dark: #065f46;
    --success-light: #ecfdf5;

    --transition: 0.25s ease;

    --shadow-soft:
        0 12px 35px rgba(20, 0, 5, 0.1);

    --shadow-card:
        0 32px 90px rgba(29, 0, 7, 0.3);

    --shadow-button:
        0 17px 34px rgba(139, 0, 21, 0.28);
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--primary-deep);
    color: var(--text-dark);

    overflow: hidden;
}

button,
input {
    font: inherit;
}


/* =========================================================
   PÁGINA PRINCIPAL
========================================================= */

.login-page {
    position: relative;

    width: 100%;
    height: 100vh;
    min-height: 680px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 14% 18%,
            rgba(194, 24, 54, 0.24),
            transparent 28%
        ),
        radial-gradient(
            circle at 78% 13%,
            rgba(213, 165, 62, 0.1),
            transparent 22%
        ),
        radial-gradient(
            circle at 88% 82%,
            rgba(194, 24, 54, 0.18),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            var(--primary-black) 0%,
            var(--primary-deep) 32%,
            var(--primary-dark) 67%,
            var(--primary) 100%
        );
}


/* =========================================================
   EFEITOS DE FUNDO
========================================================= */

.background-effects {
    position: absolute;
    inset: 0;

    z-index: 0;

    overflow: hidden;

    pointer-events: none;
}

.light-effect {
    position: absolute;

    border-radius: 50%;

    filter: blur(12px);

    animation:
        flutuarLuz 10s ease-in-out infinite alternate;
}

.light-effect-one {
    top: -140px;
    left: -120px;

    width: 420px;
    height: 420px;

    background:
        radial-gradient(
            circle,
            rgba(194, 24, 54, 0.28),
            transparent 68%
        );
}

.light-effect-two {
    top: 16%;
    right: 17%;

    width: 300px;
    height: 300px;

    background:
        radial-gradient(
            circle,
            rgba(213, 165, 62, 0.09),
            transparent 69%
        );

    animation-delay: -3s;
}

.light-effect-three {
    right: -170px;
    bottom: -170px;

    width: 520px;
    height: 520px;

    background:
        radial-gradient(
            circle,
            rgba(194, 24, 54, 0.26),
            transparent 69%
        );

    animation-delay: -6s;
}

.decorative-ring {
    position: absolute;

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 50%;

    animation:
        girarAnel 28s linear infinite;
}

.ring-one {
    top: 10%;
    right: 4%;

    width: 340px;
    height: 340px;
}

.ring-one::before {
    content: "";

    position: absolute;
    inset: 42px;

    border:
        1px solid rgba(213, 165, 62, 0.09);

    border-radius: inherit;
}

.ring-two {
    bottom: -145px;
    left: 29%;

    width: 360px;
    height: 360px;

    animation-direction: reverse;
}

.gold-particle {
    position: absolute;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--gold-light);

    box-shadow:
        0 0 17px rgba(241, 213, 138, 0.75);

    opacity: 0.7;

    animation:
        flutuarParticula 6s ease-in-out infinite alternate;
}

.particle-one {
    top: 13%;
    left: 38%;
}

.particle-two {
    top: 28%;
    left: 8%;

    width: 4px;
    height: 4px;

    animation-delay: -2s;
}

.particle-three {
    top: 70%;
    left: 48%;

    animation-delay: -4s;
}

.particle-four {
    top: 18%;
    right: 9%;

    width: 4px;
    height: 4px;

    animation-delay: -1s;
}

.particle-five {
    right: 34%;
    bottom: 12%;

    animation-delay: -3s;
}


/* =========================================================
   LAYOUT PRINCIPAL
========================================================= */

.login-layout {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(520px, 1.12fr)
        minmax(430px, 0.88fr);

    align-items: center;

    width: 100%;
    height: 100vh;
    min-height: 680px;

    max-width: 1680px;

    margin: 0 auto;

    padding:
        clamp(20px, 2.6vw, 38px)
        clamp(28px, 4.2vw, 72px);

    gap:
        clamp(34px, 4.8vw, 76px);
}


/* =========================================================
   ÁREA INSTITUCIONAL
========================================================= */

.institutional-area {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    height: calc(100vh - clamp(40px, 5.2vw, 76px));
    min-height: 610px;

    color: var(--white);
}


/* =========================================================
   MARCA
========================================================= */

.institutional-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;

    width: fit-content;

    margin-bottom: 20px;

    animation:
        aparecerEsquerda 0.75s ease both;
}

.brand-symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    padding: 7px;

    flex-shrink: 0;

    border:
        1px solid rgba(255, 255, 255, 0.22);

    border-radius: 19px;

    background:
        rgba(255, 255, 255, 0.12);

    box-shadow:
        0 14px 35px rgba(20, 0, 5, 0.22);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.brand-symbol img {
    display: block;

    width: 200%;
    height: 200%;

    object-fit: contain;
}

.brand-symbol img,
.mobile-brand-symbol img {
    object-position: center;
    image-rendering: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.brand-text span {
    margin-bottom: 5px;

    color:
        rgba(255, 255, 255, 0.7);

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-text strong {
    color: var(--white);

    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}


/* =========================================================
   IMAGEM ORGÂNICA
========================================================= */

.institutional-image-wrapper {
    position: relative;

    width: min(100%, 690px);
    height: clamp(220px, 28vh, 315px);

    margin-bottom: 22px;

    overflow: visible;

    animation:
        aparecerImagem 0.9s 0.08s ease both;
}

.institutional-image {
    position: absolute;
    inset: 0;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.19);

    border-radius:
        34% 66% 37% 63% /
        47% 34% 66% 53%;

    background-image:
        url("../img/login-solidare-v5.png");

    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    box-shadow:
        0 30px 75px rgba(20, 0, 5, 0.38);

    transition:
        transform 0.5s ease,
        border-radius 0.5s ease;
}

.institutional-image-wrapper:hover .institutional-image {
    transform:
        translateY(-5px)
        scale(1.012);

    border-radius:
        42% 58% 45% 55% /
        52% 42% 58% 48%;
}

.institutional-image-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    border-radius:
        34% 66% 37% 63% /
        47% 34% 66% 53%;

    background:
        linear-gradient(
            180deg,
            transparent 18%,
            rgba(61, 0, 9, 0.14) 54%,
            rgba(45, 0, 7, 0.66) 100%
        );

    pointer-events: none;
}

.institutional-image-wrapper::before {
    content: "";

    position: absolute;
    top: -13px;
    right: -14px;

    width: 44%;
    height: 52%;

    z-index: -1;

    border:
        1px solid rgba(213, 165, 62, 0.28);

    border-radius:
        57% 43% 62% 38% /
        42% 59% 41% 58%;

    transform: rotate(7deg);
}

.institutional-image-wrapper::after {
    content: "";

    position: absolute;
    left: -20px;
    bottom: -19px;

    width: 120px;
    height: 120px;

    z-index: -1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(194, 24, 54, 0.38),
            transparent 70%
        );

    filter: blur(2px);
}

.image-badge {
    position: absolute;
    right: -14px;
    bottom: 23px;

    z-index: 3;

    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 198px;

    padding:
        12px
        15px;

    border:
        1px solid rgba(255, 255, 255, 0.25);

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.16);

    color: var(--white);

    box-shadow:
        0 16px 35px rgba(20, 0, 5, 0.28);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.image-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        );

    color: var(--gold-light);

    box-shadow:
        0 9px 20px rgba(61, 0, 9, 0.28);
}

.image-badge div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.image-badge strong {
    font-size: 0.82rem;
    font-weight: 750;
}

.image-badge span {
    color:
        rgba(255, 255, 255, 0.7);

    font-size: 0.69rem;
}


/* =========================================================
   MENSAGEM INSTITUCIONAL
========================================================= */

.institutional-content {
    width: 100%;
    max-width: 760px;

    animation:
        aparecerCima 0.8s 0.18s ease both;
}

.institutional-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 10px;

    color: var(--gold-light);

    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow-line {
    width: 35px;
    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            var(--gold-light)
        );
}

.institutional-content h1 {
    max-width: 730px;

    margin-bottom: 17px;

    color: var(--white);

    font-size:
        clamp(2rem, 3.15vw, 3.35rem);

    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.institutional-content h1 span {
    color: var(--gold-light);
}

.institutional-content p {
    max-width: 630px;

    color:
        rgba(255, 255, 255, 0.71);

    font-size: 0.88rem;
    line-height: 1.52;
}


/* =========================================================
   INDICADORES
========================================================= */

.impact-indicators {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    width: 100%;
    max-width: 720px;

    margin-top: auto;
    padding-top: 16px;

    animation:
        aparecerCima 0.8s 0.3s ease both;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;

    padding:
        9px
        11px;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.055);

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition);

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.impact-item:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(213, 165, 62, 0.25);

    background:
        rgba(255, 255, 255, 0.09);
}

.impact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex-shrink: 0;

    border-radius: 10px;

    background:
        rgba(213, 165, 62, 0.12);

    color: var(--gold-light);

    font-size: 0.85rem;
}

.impact-item div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.impact-item strong {
    color: var(--white);

    font-size: 0.76rem;
    font-weight: 700;
}

.impact-item span:last-child {
    overflow: hidden;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 0.64rem;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   ÁREA DE AUTENTICAÇÃO
========================================================= */

.authentication-area {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
}


/* =========================================================
   CARD DO LOGIN
========================================================= */

.login-card {
    position: relative;

    width: 100%;
    max-width: 500px;

    padding:
        30px
        36px
        22px;

    overflow: hidden;

    border:
        1px solid rgba(255, 255, 255, 0.68);

    border-radius: 27px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.97),
            rgba(255, 255, 255, 0.89)
        );

    box-shadow:
        var(--shadow-card);

    animation:
        aparecerCard 0.85s 0.12s ease both;

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.login-card::before {
    content: "";

    position: absolute;
    top: -90px;
    right: -80px;

    width: 230px;
    height: 230px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(194, 24, 54, 0.08),
            transparent 69%
        );

    pointer-events: none;
}

.login-card::after {
    content: "";

    position: absolute;
    left: -120px;
    bottom: -130px;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(213, 165, 62, 0.06),
            transparent 69%
        );

    pointer-events: none;
}

.card-accent {
    position: absolute;
    top: 0;
    left: 50%;

    width: 145px;
    height: 4px;

    border-radius:
        0 0 999px 999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            var(--primary-light),
            var(--gold),
            transparent
        );

    transform:
        translateX(-50%);
}


/* =========================================================
   MARCA MOBILE
========================================================= */

.mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;

    margin-bottom: 28px;
}

.mobile-brand-symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    padding: 8px;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        );

    box-shadow:
        0 11px 25px rgba(139, 0, 21, 0.2);
}

.mobile-brand-symbol img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.mobile-brand > div:last-child {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.mobile-brand span {
    margin-bottom: 4px;

    color: var(--text-medium);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mobile-brand strong {
    color: var(--primary);

    font-size: 1.25rem;
    font-weight: 800;
}


/* =========================================================
   CABEÇALHO DO LOGIN
========================================================= */

.login-header {
    position: relative;
    z-index: 2;

    margin-bottom: 18px;

    text-align: center;
}

.login-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin:
        0
        auto
        10px;

    border:
        1px solid rgba(139, 0, 21, 0.1);

    border-radius: 19px;

    background:
        linear-gradient(
            145deg,
            var(--primary-soft),
            var(--white)
        );

    color: var(--primary);

    font-size: 1.35rem;

    box-shadow:
        0 13px 28px rgba(139, 0, 21, 0.12);
}

.login-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: var(--primary);

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.login-header h2 {
    margin-bottom: 9px;

    color: var(--text-dark);

    font-size:
        clamp(1.8rem, 2.2vw, 2.1rem);

    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.login-header p {
    max-width: 340px;

    margin: 0 auto;

    color: var(--text-medium);

    font-size: 0.82rem;
    line-height: 1.45;
}


/* =========================================================
   MENSAGENS
========================================================= */

.login-message {
    position: relative;
    z-index: 2;

    margin-bottom: 18px;

    padding:
        13px
        14px
        13px
        43px;

    border:
        1px solid transparent;

    border-radius: 11px;

    font-size: 0.81rem;
    font-weight: 600;
    line-height: 1.4;
}

.login-message::before {
    position: absolute;
    top: 50%;
    left: 15px;

    font-family:
        "Font Awesome 6 Free";

    font-weight: 900;

    transform:
        translateY(-50%);
}

.login-message.error {
    border-color: #fecaca;

    background:
        var(--danger-light);

    color:
        var(--danger-dark);
}

.login-message.error::before {
    content: "\f071";
}

.login-message.success {
    border-color: #a7f3d0;

    background:
        var(--success-light);

    color:
        var(--success-dark);
}

.login-message.success::before {
    content: "\f058";
}

.login-message.info {
    border-color: #edc3ca;

    background:
        var(--primary-softer);

    color:
        var(--primary);
}

.login-message.info::before {
    content: "\f05a";
}


/* =========================================================
   FORMULÁRIO
========================================================= */

.login-form {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    gap: 11px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    color: #393b40;

    font-size: 0.84rem;
    font-weight: 700;
}

.input-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 9px;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border-radius: 9px;

    background:
        var(--background-soft);

    color: #9398a1;

    font-size: 0.9rem;

    pointer-events: none;

    transition:
        background var(--transition),
        color var(--transition);
}

.input-wrapper input {
    width: 100%;
    height: 49px;

    padding:
        0
        51px
        0
        54px;

    border:
        1px solid var(--border);

    border-radius: 13px;
    outline: none;

    background:
        rgba(255, 255, 255, 0.88);

    color: var(--text-dark);

    font-size: 0.91rem;

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.input-wrapper input::placeholder {
    color: #a2a7af;
}

.input-wrapper input:hover {
    border-color:
        var(--border-hover);
}

.input-wrapper input:focus {
    border-color:
        var(--primary);

    background:
        var(--white);

    box-shadow:
        0 0 0 4px
        rgba(139, 0, 21, 0.09);
}

.input-wrapper:focus-within .input-icon {
    background:
        var(--primary-soft);

    color:
        var(--primary);
}

.input-wrapper input.input-error {
    border-color:
        var(--danger);

    background:
        #fffafa;

    box-shadow:
        0 0 0 4px
        rgba(220, 53, 69, 0.08);
}

.field-error {
    min-height: 10px;

    color:
        var(--danger-dark);

    font-size: 0.71rem;
    font-weight: 600;
    line-height: 1.35;
}


/* =========================================================
   MOSTRAR SENHA
========================================================= */

.password-toggle {
    position: absolute;
    right: 8px;

    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 39px;
    height: 39px;

    padding: 0;

    border: 0;
    border-radius: 10px;

    background: transparent;
    color: #898e97;

    cursor: pointer;

    box-shadow: none;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.password-toggle:hover {
    background:
        var(--primary-soft);

    color:
        var(--primary);

    transform: none;
    box-shadow: none;
}

.password-toggle:active {
    transform:
        scale(0.95);
}

.password-toggle:focus-visible {
    outline:
        3px solid rgba(139, 0, 21, 0.14);

    outline-offset: 1px;
}


/* =========================================================
   LEMBRAR E-MAIL
========================================================= */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 24px;
}

.remember-option {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--text-medium);

    font-size: 0.8rem;
    font-weight: 500;

    cursor: pointer;
    user-select: none;
}

.remember-option input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 19px;
    height: 19px;

    flex-shrink: 0;

    border:
        1.5px solid #c7cbd1;

    border-radius: 5px;

    background: var(--white);
    color: transparent;

    font-size: 0.63rem;

    transition:
        border-color var(--transition),
        background var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.remember-option:hover .custom-checkbox {
    border-color:
        var(--primary);
}

.remember-option input:checked + .custom-checkbox {
    border-color:
        var(--primary);

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        );

    color:
        var(--white);
}

.remember-option input:focus-visible + .custom-checkbox {
    box-shadow:
        0 0 0 4px
        rgba(139, 0, 21, 0.11);
}


/* =========================================================
   BOTÃO DE LOGIN
========================================================= */

.login-button {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 49px;

    margin-top: 2px;

    padding:
        0
        22px;

    overflow: hidden;

    border: 0;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--primary-dark) 0%,
            var(--primary) 47%,
            var(--primary-light) 100%
        );

    color: var(--white);

    font-size: 0.91rem;
    font-weight: 750;
    letter-spacing: 0.01em;

    cursor: pointer;

    box-shadow:
        var(--shadow-button);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        filter var(--transition);
}

.login-button::before {
    content: "";

    position: absolute;
    top: 0;
    left: -125%;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent
        );

    transition:
        left 0.65s ease;
}

.login-button::after {
    content: "";

    position: absolute;
    right: -20px;

    width: 110px;
    height: 110px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(213, 165, 62, 0.2),
            transparent 68%
        );
}

.login-button:hover:not(:disabled) {
    transform:
        translateY(-2px);

    box-shadow:
        0 21px 39px rgba(139, 0, 21, 0.35);

    filter:
        saturate(1.09);
}

.login-button:hover:not(:disabled)::before {
    left: 125%;
}

.login-button:active:not(:disabled) {
    transform:
        translateY(0);
}

.login-button:focus-visible {
    outline:
        4px solid rgba(139, 0, 21, 0.15);

    outline-offset: 3px;
}

.login-button:disabled {
    opacity: 0.7;

    cursor: not-allowed;

    transform: none;
    box-shadow: none;
}

.button-content,
.button-loading {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.button-content i {
    color: var(--gold-light);

    transition:
        transform var(--transition);
}

.login-button:hover:not(:disabled) .button-content i {
    transform:
        translateX(4px);
}


/* =========================================================
   SEGURANÇA
========================================================= */

.security-info {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 11px;

    margin-top: 15px;

    padding:
        10px
        12px;

    border:
        1px solid #e7e9ed;

    border-radius: 12px;

    background:
        rgba(250, 251, 252, 0.8);

    transition:
        border-color var(--transition),
        background var(--transition);
}

.security-info:hover {
    border-color:
        rgba(139, 0, 21, 0.16);

    background:
        var(--primary-softer);
}

.security-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 10px;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size: 0.88rem;
}

.security-info > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;

    min-width: 0;
}

.security-info strong {
    color: var(--text-dark);

    font-size: 0.78rem;
    font-weight: 700;
}

.security-info div span {
    color: var(--text-medium);

    font-size: 0.68rem;
    line-height: 1.35;
}

.security-status {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #21a366;

    box-shadow:
        0 0 0 4px rgba(33, 163, 102, 0.12);
}


/* =========================================================
   RODAPÉ
========================================================= */

.login-footer {
    position: relative;
    z-index: 2;

    margin-top: 12px;

    text-align: center;
}

.footer-divider {
    display: block;

    width: 48px;
    height: 2px;

    margin:
        0
        auto
        8px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(139, 0, 21, 0.26),
            transparent
        );
}

.login-footer p {
    color: var(--text-light);

    font-size: 0.67rem;
    line-height: 1.5;
}


/* =========================================================
   UTILITÁRIOS
========================================================= */

[hidden] {
    display: none !important;
}


/* =========================================================
   ANIMAÇÕES
========================================================= */

@keyframes aparecerEsquerda {
    from {
        opacity: 0;

        transform:
            translateX(-24px);
    }

    to {
        opacity: 1;

        transform:
            translateX(0);
    }
}

@keyframes aparecerImagem {
    from {
        opacity: 0;

        transform:
            translateY(20px)
            scale(0.975);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes aparecerCima {
    from {
        opacity: 0;

        transform:
            translateY(23px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

@keyframes aparecerCard {
    from {
        opacity: 0;

        transform:
            translateY(26px)
            scale(0.975);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes flutuarLuz {
    from {
        transform:
            translate3d(-8px, -6px, 0)
            scale(0.98);
    }

    to {
        transform:
            translate3d(12px, 13px, 0)
            scale(1.05);
    }
}

@keyframes flutuarParticula {
    from {
        opacity: 0.25;

        transform:
            translateY(0)
            scale(0.8);
    }

    to {
        opacity: 0.9;

        transform:
            translateY(-17px)
            scale(1.15);
    }
}

@keyframes girarAnel {
    to {
        transform:
            rotate(360deg);
    }
}


/* =========================================================
   TELAS GRANDES
========================================================= */

@media (min-width: 1600px) {

    .login-layout {
        grid-template-columns:
            minmax(650px, 1.2fr)
            minmax(500px, 0.8fr);
    }

    .institutional-image-wrapper {
        height: 380px;
    }

    .login-card {
        max-width: 515px;
    }

}


/* =========================================================
   NOTEBOOKS
========================================================= */

@media (max-width: 1280px) {

    .login-layout {
        grid-template-columns:
            minmax(500px, 1fr)
            minmax(430px, 0.82fr);

        gap: 45px;

        padding:
            34px
            43px;
    }

    .institutional-area {
        min-height:
            calc(100vh - 68px);
    }

    .institutional-image-wrapper {
        height:
            clamp(230px, 31vh, 330px);
    }

    .institutional-content h1 {
        font-size:
            clamp(2.15rem, 3.3vw, 3.3rem);
    }

    .login-card {
        padding:
            34px
            34px
            25px;
    }

}


/* =========================================================
   TELAS COM POUCA ALTURA
========================================================= */

@media (max-height: 820px) and (min-width: 981px) {

    .login-layout {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .institutional-area {
        min-height:
            calc(100vh - 44px);
    }

    .institutional-brand {
        margin-bottom: 19px;
    }

    .brand-symbol {
        width: 50px;
        height: 50px;

        border-radius: 15px;
    }

    .institutional-image-wrapper {
        height:
            clamp(185px, 27vh, 255px);

        margin-bottom: 20px;
    }

    .institutional-content h1 {
        margin-bottom: 11px;

        font-size:
            clamp(1.9rem, 3vw, 2.7rem);
    }

    .institutional-content p {
        font-size: 0.83rem;
        line-height: 1.48;
    }

    .impact-indicators {
        padding-top: 17px;
    }

    .impact-item {
        padding:
            9px
            10px;
    }

    .login-card {
        padding:
            27px
            31px
            20px;
    }

    .login-header {
        margin-bottom: 19px;
    }

    .login-header-icon {
        width: 49px;
        height: 49px;

        margin-bottom: 10px;

        border-radius: 15px;

        font-size: 1.05rem;
    }

    .login-header h2 {
        margin-bottom: 6px;

        font-size: 1.8rem;
    }

    .login-form {
        gap: 11px;
    }

    .input-wrapper input {
        height: 48px;
    }

    .field-error {
        min-height: 10px;
    }

    .login-button {
        min-height: 49px;
    }

    .security-info {
        margin-top: 16px;

        padding:
            10px
            12px;
    }

    .login-footer {
        margin-top: 14px;
    }

}



/* =========================================================
   AJUSTE PARA NOTEBOOKS 1366x768 / 1536x864
========================================================= */

@media (max-width: 1540px) and (max-height: 900px) and (min-width: 981px) {

    .login-layout {
        padding:
            18px
            42px;

        gap: 42px;
    }

    .institutional-area {
        height: calc(100vh - 36px);
        min-height: 620px;
    }

    .institutional-brand {
        margin-bottom: 14px;
    }

    .institutional-image-wrapper {
        height: clamp(205px, 27vh, 285px);
        margin-bottom: 16px;
    }

    .institutional-content h1 {
        margin-bottom: 10px;

        font-size:
            clamp(1.95rem, 3vw, 3rem);
    }

    .institutional-content p {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .impact-indicators {
        padding-top: 12px;
    }

    .impact-item {
        padding:
            8px
            10px;
    }

    .login-card {
        padding:
            26px
            31px
            18px;
    }

    .login-header {
        margin-bottom: 15px;
    }

    .login-header-icon {
        width: 46px;
        height: 46px;

        margin-bottom: 8px;

        border-radius: 14px;

        font-size: 1rem;
    }

    .login-header h2 {
        margin-bottom: 5px;

        font-size: 1.72rem;
    }

    .login-header p {
        font-size: 0.78rem;
    }

    .login-form {
        gap: 9px;
    }

    .input-wrapper input {
        height: 46px;
    }

    .field-error {
        min-height: 8px;
    }

    .login-button {
        min-height: 47px;
    }

    .security-info {
        margin-top: 12px;
        padding:
            9px
            11px;
    }

    .login-footer {
        margin-top: 10px;
    }

    .footer-divider {
        margin-bottom: 6px;
    }

}

/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 980px) {

    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .login-page {
        min-height: 100vh;
    }

    .login-layout {
        display: flex;
        align-items: center;
        justify-content: center;

        min-height: 100vh;

        padding:
            38px
            24px;
    }

    .institutional-area {
        display: none;
    }

    .authentication-area {
        width: 100%;
    }

    .login-card {
        max-width: 520px;

        padding:
            40px
            38px
            28px;
    }

    .mobile-brand {
        display: flex;
    }

}


/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 560px) {

    .login-page {
        min-height: 100vh;

        overflow-y: auto;
    }

    .login-layout {
        align-items: flex-start;

        padding:
            18px
            12px;
    }

    .login-card {
        max-width: none;

        padding:
            29px
            21px
            22px;

        border-radius: 23px;
    }

    .mobile-brand {
        margin-bottom: 24px;
    }

    .mobile-brand-symbol {
        width: 44px;
        height: 44px;

        border-radius: 13px;
    }

    .login-header {
        margin-bottom: 23px;
    }

    .login-header-icon {
        width: 55px;
        height: 55px;

        margin-bottom: 13px;

        border-radius: 17px;
    }

    .login-header h2 {
        font-size: 1.9rem;
    }

    .login-header p {
        font-size: 0.84rem;
    }

    .login-form {
        gap: 14px;
    }

    .input-wrapper input {
        height: 52px;

        font-size: 0.88rem;
    }

    .login-button {
        min-height: 52px;
    }

    .security-info {
        margin-top: 21px;
    }

}


/* =========================================================
   CELULARES PEQUENOS
========================================================= */

@media (max-width: 370px) {

    .login-layout {
        padding:
            10px
            7px;
    }

    .login-card {
        padding:
            25px
            16px
            19px;

        border-radius: 20px;
    }

    .login-header h2 {
        font-size: 1.72rem;
    }

    .security-info {
        align-items: flex-start;
    }

    .security-status {
        margin-top: 4px;
    }

}


/* =========================================================
   ACESSIBILIDADE
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}

/* ======================================================
   LINK "ESQUECEU SUA SENHA?"
====================================================== */

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

.forgot-password-button {
    border: none;
    background: transparent;
    padding: 0;

    color: #7a1220;
    font-size: 0.88rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.forgot-password-button:hover {
    color: #a31a2c;
    transform: translateY(-1px);
}

.forgot-password-button:focus-visible {
    outline: 3px solid rgba(154, 111, 28, 0.25);
    outline-offset: 4px;
    border-radius: 4px;
}


/* ======================================================
   MODAL DE RECUPERAÇÃO DE SENHA
====================================================== */

.password-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(30, 5, 10, 0.72);
    backdrop-filter: blur(8px);

    animation: modalFadeIn 0.25s ease;
}

.password-modal[hidden] {
    display: none !important;
}

.password-modal-content {
    position: relative;

    width: min(100%, 460px);

    padding: 36px;

    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(249, 244, 238, 0.98)
        );

    box-shadow:
        0 30px 80px rgba(37, 3, 9, 0.35);

    animation: modalSlideIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: rgba(95, 0, 14, 0.08);
    color: #5f000e;

    font-size: 1.15rem;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.close-modal:hover {
    background: rgba(95, 0, 14, 0.14);
    transform: rotate(5deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-header > i {
    width: 64px;
    height: 64px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #5f000e,
            #8f1528
        );

    color: #ffffff;
    font-size: 1.6rem;

    box-shadow:
        0 14px 30px rgba(95, 0, 14, 0.24);
}

.modal-header h3 {
    margin: 0 0 8px;

    color: #361016;
    font-size: 1.55rem;
}

.modal-header p {
    margin: 0;

    color: #7a6468;
    line-height: 1.6;
}

#formRecuperarSenha {
    display: grid;
    gap: 20px;
}

#formRecuperarSenha .form-group {
    margin: 0;
}

#emailRecuperacao {
    width: 100%;
    min-height: 52px;

    padding: 0 16px;

    border: 1px solid rgba(95, 0, 14, 0.16);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.92);

    color: #351014;
    font: inherit;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

#emailRecuperacao:focus {
    outline: none;

    border-color: #7a1220;
    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(122, 18, 32, 0.12);
}

#resultadoRecuperacao {
    margin-top: 22px;
}

.recovery-result {
    display: grid;
    gap: 14px;
}

.temporary-password-box {
    padding: 16px;

    border: 1px dashed rgba(95, 0, 14, 0.28);
    border-radius: 14px;

    background: rgba(95, 0, 14, 0.05);

    text-align: center;
}

.temporary-password-label {
    display: block;

    margin-bottom: 8px;

    color: #765e63;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.temporary-password-value {
    color: #5f000e;
    font-family: "Courier New", monospace;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;

    word-break: break-all;
}


/* ======================================================
   ANIMAÇÕES
====================================================== */

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ======================================================
   RESPONSIVIDADE
====================================================== */

@media (max-width: 560px) {

    .login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .password-modal {
        padding: 14px;
    }

    .password-modal-content {
        padding: 32px 22px 24px;
        border-radius: 20px;
    }

    .modal-header h3 {
        font-size: 1.35rem;
    }

}


/* =====================================================
   CORREÇÃO PARA ZOOM (67%, 80%, 90%, etc.)
   Mantém imagem e formulário próximos
===================================================== */

.login-layout{
    width:min(100%,1500px) !important;
    margin:0 auto !important;
    justify-content:center !important;
    grid-template-columns:minmax(0,1.15fr) minmax(420px,0.85fr) !important;
    gap:clamp(32px,4vw,72px) !important;
}

.institutional-area{
    max-width:720px;
    justify-self:end;
}

.authentication-area{
    justify-self:start;
}

.login-card{
    width:100%;
    max-width:480px;
}

@media (min-width:1400px){
    .login-layout{
        width:min(100%,1450px) !important;
        gap:56px !important;
    }
}

@media (max-width:980px){
    .login-layout{
        display:flex !important;
    }
}
