:root {
    --verde-escuro: #0f4d35;
    --verde: #19724f;
    --verde-claro: #e8f3ee;
    --cinza-texto: #4d5963;
    --cinza-borda: #d8e1dc;
    --cinza-fundo: #f5f8f6;
    --erro-fundo: #fff1f1;
    --erro-texto: #9b1c1c;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #1f2a33;
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(145deg, rgba(232, 243, 238, 0.82), rgba(255, 255, 255, 0.9) 48%, rgba(244, 248, 246, 0.96)),
        var(--cinza-fundo);
}

.login-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 32px 20px 56px;
    overflow: hidden;
}

.login-container {
    position: relative;
    z-index: 5;
    display: grid;
    justify-items: center;
    gap: 20px;
    width: min(100%, 420px);
}

.login-logo {
    width: clamp(180px, 22vw, 260px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.login-card {
    position: relative;
    width: 100%;
    padding: 34px;
    border: 1px solid rgba(15, 77, 53, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 48px rgba(20, 38, 31, 0.13);
}

.login-heading {
    display: grid;
    grid-template-columns: 5px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.login-heading__bar {
    width: 5px;
    height: 58px;
    border-radius: 999px;
    background: var(--verde);
}

.login-heading h1 {
    margin: 0;
    color: var(--verde-escuro);
    font-size: 1.8rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.login-heading p {
    margin: 7px 0 0;
    color: var(--cinza-texto);
    font-size: 1rem;
}

.login-form {
    display: grid;
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: #25342e;
    font-weight: 700;
}

.form-field input,
.form-field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--cinza-borda);
    border-radius: 10px;
    padding: 12px 14px;
    color: #1d2b24;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.password-toggle:focus-visible,
.login-button:focus-visible {
    outline: 3px solid rgba(25, 114, 79, 0.22);
    outline-offset: 2px;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 4px rgba(25, 114, 79, 0.1);
}

.password-control {
    position: relative;
}

.password-control input {
    padding-right: 54px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 9px;
    color: var(--verde-escuro);
    background: var(--verde-claro);
    cursor: pointer;
}

.password-toggle:hover {
    background: #d9ebe3;
}

.password-toggle {
    transform: translateY(-50%);
}

.login-feedback {
    margin: 0;
    border: 1px solid #f1b7b7;
    border-radius: 10px;
    padding: 11px 12px;
    color: var(--erro-texto);
    font-weight: 700;
    background: var(--erro-fundo);
}

.login-button {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-size: 1.03rem;
    font-weight: 800;
    background: var(--verde-escuro);
    box-shadow: 0 12px 24px rgba(15, 77, 53, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
    background: #0b3e2a;
    box-shadow: 0 14px 28px rgba(15, 77, 53, 0.26);
    transform: translateY(-1px);
}

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

.login-button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.login-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 14px 16px;
    color: #66736d;
    font-size: 0.9rem;
    text-align: center;
    pointer-events: none;
}

@media (max-width: 640px) {
    .login-page {
        align-items: flex-start;
        min-height: 100svh;
        padding: clamp(24px, 8vh, 64px) 14px 62px;
    }

    .login-card {
        padding: 26px 20px;
        border-radius: 12px;
    }

    .login-container {
        width: min(94vw, 420px);
        gap: 16px;
    }

    .login-logo {
        width: clamp(140px, 50vw, 200px);
    }

    .login-heading {
        grid-template-columns: 4px 1fr;
        gap: 13px;
        margin-bottom: 24px;
    }

    .login-heading__bar {
        width: 4px;
        height: 52px;
    }

    .login-heading h1 {
        font-size: 1.45rem;
    }

}

@media (min-width: 641px) and (max-width: 1024px) {
    .login-logo {
        width: clamp(170px, 28vw, 230px);
    }
}
