:root {
    --verde-principal: #2e8b2d;
    --verde-escuro: #1f6f24;
    --verde-claro: #edf8ed;
    --preto: #111513;
    --cinza-escuro: #49524d;
    --cinza: #7c8580;
    --cinza-claro: #eef1ef;
    --branco: #ffffff;
    --vermelho: #d92d20;
    --sombra: 0 24px 70px rgba(17, 21, 19, 0.13);
    --radius: 22px;
}

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

html,
body {
    min-height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--branco);
    color: var(--preto);
}

button,
input {
    font-family: inherit;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(400px, 46%) 1fr;
}

.login-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 70px;
    color: var(--branco);
    background:
        linear-gradient(
            145deg,
            #101311 0%,
            #171c19 48%,
            #0e110f 100%
        );
}

.brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
}

.brand-logo {
    width: 185px;
    max-height: 100px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 50px;
    padding: 12px 18px;
    border-radius: 16px;
    background: var(--branco);
}

.brand-tag {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #cceacb;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-content h1 {
    margin-bottom: 22px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.brand-content > p {
    max-width: 520px;
    color: #bec6c1;
    font-size: 16px;
    line-height: 1.8;
}

.brand-features {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e7ece8;
    font-size: 14px;
}

.feature-item i {
    color: #66c55d;
    font-size: 18px;
}

.brand-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.decoration-one {
    width: 350px;
    height: 350px;
    right: -160px;
    top: -120px;
    background: rgba(61, 172, 55, 0.15);
}

.decoration-two {
    width: 280px;
    height: 280px;
    left: -120px;
    bottom: -120px;
    background: rgba(48, 139, 45, 0.12);
}

.login-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 40px;
    background:
        radial-gradient(
            circle at top right,
            rgba(46, 139, 45, 0.08),
            transparent 34%
        ),
        #f8faf8;
}

.login-card {
    width: 100%;
    max-width: 470px;
    padding: 44px;
    border: 1px solid #e4e8e5;
    border-radius: var(--radius);
    background: var(--branco);
    box-shadow: var(--sombra);
}

.mobile-logo {
    display: none;
    margin-bottom: 24px;
    text-align: center;
}

.mobile-logo img {
    width: 145px;
    max-height: 80px;
    object-fit: contain;
}

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

.system-name {
    display: block;
    margin-bottom: 8px;
    color: var(--verde-principal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-header h2 {
    margin-bottom: 8px;
    font-size: 32px;
    letter-spacing: -0.03em;
}

.login-header p {
    color: var(--cinza);
    font-size: 14px;
    line-height: 1.7;
}

.alert-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid #f7c5c1;
    border-radius: 12px;
    background: #fff1f0;
    color: #9e2118;
    font-size: 13px;
}

.alert-error i {
    margin-top: 2px;
    color: var(--vermelho);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #313933;
    font-size: 13px;
    font-weight: 600;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper > i {
    position: absolute;
    left: 16px;
    color: #8a938d;
    font-size: 18px;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 54px;
    padding: 0 50px 0 47px;
    border: 1px solid #dfe4e0;
    border-radius: 13px;
    outline: none;
    background: #fbfcfb;
    color: var(--preto);
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

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

.input-wrapper input:focus {
    border-color: var(--verde-principal);
    background: var(--branco);
    box-shadow: 0 0 0 4px rgba(46, 139, 45, 0.11);
}

.toggle-password {
    position: absolute;
    right: 10px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #7b837e;
    cursor: pointer;
}

.toggle-password:hover {
    color: var(--verde-principal);
    background: var(--verde-claro);
}

.btn-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    margin-top: 28px;
    padding: 0 20px;
    border: 0;
    border-radius: 13px;
    background:
        linear-gradient(
            135deg,
            var(--verde-principal),
            var(--verde-escuro)
        );
    color: var(--branco);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(46, 139, 45, 0.23);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(46, 139, 45, 0.3);
}

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

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--cinza);
    font-size: 12px;
}

.login-security i {
    color: var(--verde-principal);
}

.login-footer {
    display: flex;
    gap: 9px;
    margin-top: 26px;
    color: #858e88;
    font-size: 11px;
}

.footer-divider {
    color: #bdc3bf;
}

@media (max-width: 980px) {

    .login-page {
        grid-template-columns: 1fr;
    }

    .login-brand {
        display: none;
    }

    .login-area {
        min-height: 100vh;
        padding: 24px;
    }

    .mobile-logo {
        display: block;
    }

}

@media (max-width: 520px) {

    .login-area {
        justify-content: flex-start;
        padding: 28px 18px 20px;
    }

    .login-card {
        margin-top: 20px;
        padding: 30px 22px;
        border-radius: 18px;
    }

    .login-header h2 {
        font-size: 28px;
    }

    .login-footer {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

}