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

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

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top right,
            rgba(20, 82, 135, 0.08),
            transparent 40%),
        #f3f6fa;
    color: #172033;
    display: flex;
    flex-direction: column;
}

.login-page {
    flex: 1;
    width: 100%;
    padding: 50px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 1050px;
    min-height: 590px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(30, 55, 80, 0.13),
        0 4px 12px rgba(30, 55, 80, 0.05);
}

.login-info {
    position: relative;
    padding: 50px 45px;
    color: white;
    background: linear-gradient(135deg,
            #245954 0%,
            #2F6F68 58%,
            #477F78 100%);
}

.login-info::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg,
            transparent 50%,
            rgba(255, 255, 255, 0.025));
}

.brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 65px;
}

.brand-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
    background: white;
    color: #285F59;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

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

.brand-name {
    font-size: 19px;
    font-weight: 700;
}

.brand-city {
    margin-top: 3px;
    font-size: 13px;
    opacity: 0.7;
}

.welcome {
    position: relative;
    z-index: 1;
    text-align: center;
}

.welcome h1 {
    font-size: 27px;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 18px;
}

.welcome p {
    max-width: 400px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.divider {
    height: 1px;
    margin: 32px 0 22px;
    background: rgba(255, 255, 255, 0.24);
}

.features {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.feature {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 17px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    transition:
        background 0.2s,
        transform 0.2s;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.feature-icon {
    width: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: white;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature>div:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feature strong {
    font-size: 13px;
    font-weight: 700;
}

.feature span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
}

.login-form-area {
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.login-header {
    padding: 44px 38px 28px;
    border-bottom: 1px solid #e3e8ef;
}

.login-header h2 {
    font-size: 27px;
    font-weight: 600;
    color: #151b29;
    margin-bottom: 10px;
}

.login-header p {
    font-size: 13px;
    color: #718096;
}

.login-content {
    flex: 1;
    padding: 37px 38px;
}

.alert-error {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 7px;
    background: #fff1f1;
    border: 1px solid #ffd1d1;
    color: #b42318;
    font-size: 13px;
}

.alert-error svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

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

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 500;
    color: #475467;
}

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

.input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 48px;
    border: 1px solid #ccd5e0;
    border-radius: 7px;
    background: #ffffff;
    outline: none;
    color: #172033;
    font-size: 14px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.input-wrapper input::placeholder {
    color: #98a2b3;
}

.input-wrapper input:focus {
    border-color: #155c91;
    box-shadow: 0 0 0 3px rgba(21, 92, 145, 0.10);
}

.input-icon {
    position: absolute;
    z-index: 2;
    left: 16px;
    display: flex;
    pointer-events: none;
}

.input-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #344054;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toggle-password {
    position: absolute;
    right: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 5px;
}

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

.toggle-password svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #1d2939;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -3px;
    margin-bottom: 26px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667085;
    font-size: 13px;
    cursor: pointer;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: #155c91;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 7px;
    background: #285F59;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition:
        background 0.2s,
        transform 0.15s,
        box-shadow 0.2s;
}

.btn-login:hover {
    background: #1d4440;
    box-shadow: 0 7px 16px rgba(21, 92, 145, 0.20);
}

.btn-login:active {
    transform: scale(0.99);
}

.btn-login svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Alert */
.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;

    min-width: 320px;
    max-width: 450px;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 16px 18px;

    border-radius: 12px;

    background: #fff;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.06);

    animation: flashSlideIn 0.35s ease-out;
}

/* Ícone */
.flash-icon {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

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

    border-radius: 50%;

    font-size: 18px;
    font-weight: 700;
}

/* Conteúdo */
.flash-content {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 4px;

    line-height: 1.4;
}

.flash-content strong {
    font-size: 15px;
}

.flash-content span {
    font-size: 14px;
    color: #4b5563;
}

.flash-content ul {
    margin: 4px 0 0 18px;
    padding: 0;

    font-size: 14px;
    color: #4b5563;
}

.flash-content li {
    margin-bottom: 3px;
}

/* Botão fechar */
.flash-close {
    border: none;
    background: transparent;

    padding: 0;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    opacity: 0.5;

    transition: opacity 0.2s, transform 0.2s;
}

.flash-close:hover {
    opacity: 1;
    transform: scale(1.1);
}


/* =========================
   SUCESSO
========================= */

.flash-success {
    border-left: 5px solid #16a34a;
}

.flash-success .flash-icon {
    background: #dcfce7;
    color: #16a34a;
}

.flash-success .flash-content strong {
    color: #15803d;
}

.flash-success .flash-close {
    color: #15803d;
}


/* =========================
   ERRO
========================= */

.flash-error {
    border-left: 5px solid #dc2626;
}

.flash-error .flash-icon {
    background: #fee2e2;
    color: #dc2626;
}

.flash-error .flash-content strong {
    color: #b91c1c;
}

.flash-error .flash-close {
    color: #b91c1c;
}


/* =========================
   ANIMAÇÃO
========================= */

@keyframes flashSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =========================
   RESPONSIVO
========================= */

@media (max-width: 600px) {
    .flash-message {
        top: 15px;
        right: 15px;
        left: 15px;

        min-width: auto;
        max-width: none;
    }
}

footer {
    min-height: 52px;
    padding: 0 25px;
    background: #285F59;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

footer p {
    font-size: 11px;
    opacity: 0.9;
}

@media (max-width: 900px) {

    .login-card {
        max-width: 580px;
        grid-template-columns: 1fr;
    }

    .login-info {
        padding: 35px 30px;
    }

    .brand {
        margin-bottom: 35px;
    }

    .features {
        display: none;
    }

    .divider {
        display: none;
    }

    .welcome {
        margin-bottom: 5px;
    }

    .login-header {
        padding: 35px 30px 25px;
    }

    .login-content {
        padding: 30px;
    }

}

@media (max-width: 520px) {

    .login-page {
        padding: 0;
        align-items: stretch;
    }

    .login-card {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .login-info {
        padding: 28px 22px 32px;
    }

    .brand {
        margin-bottom: 30px;
    }

    .welcome h1 {
        font-size: 23px;
    }

    .welcome p {
        font-size: 13px;
    }

    .login-header {
        padding: 28px 22px 22px;
    }

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

    .login-content {
        padding: 27px 22px;
    }

    footer {
        display: none;
    }

}
