:root {
    --sb-verde: #00332e;
    --sb-verde-2: #00534a;
    --sb-dourado: #af8f49;
    --sb-dourado-2: #d4b573;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
    background: radial-gradient(circle at 15% 15%, var(--sb-verde-2) 0%, transparent 42%),
                radial-gradient(circle at 85% 88%, rgba(175, 143, 73, .16) 0%, transparent 40%),
                linear-gradient(155deg, #00453d 0%, var(--sb-verde) 48%, #001b17 100%);
    background-attachment: fixed;
}

/* Textura sutil (linhas finas) por cima do gradiente, sem exigir imagem externa */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
    z-index: 0;
}

.container {
    display: flex;
    flex-wrap: wrap;
    background: none;
    border-radius: 26px;
    overflow: hidden;
    max-width: 960px;
    width: 100%;
    box-shadow: 0 30px 70px rgba(0, 10, 8, .45), 0 4px 18px rgba(0, 10, 8, .25);
    position: relative;
    z-index: 1;
}

.left-side {
    background:
        radial-gradient(circle at 30% 20%, rgba(212,181,115,.14) 0%, transparent 55%),
        linear-gradient(160deg, var(--sb-verde-2) 0%, var(--sb-verde) 60%, #00211d 100%);
    color: #fff;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 300px;
    position: relative;
}

.left-side::after {
    /* Moldura fina dourada sutil, reforça a identidade premium sem poluir */
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(212, 181, 115, .16);
    border-radius: 18px;
    pointer-events: none;
}

.left-side img {
    max-width: 350px;
    width: 80%;
}

.right-side {
    flex: 1;
    padding: 3.25rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fdfcfa;
    min-width: 300px;
}

.right-side h2 {
    color: var(--sb-verde);
    margin: 0 0 .4rem;
    font-weight: 700;
    font-size: 1.65rem;
    text-align: left;
    letter-spacing: -.2px;
}

.right-side .subtitulo {
    color: #7c8a87;
    font-size: .88rem;
    margin: 0 0 1.9rem;
}

.form-group {
    margin-bottom: 1.15rem;
}

label {
    display: block;
    margin-bottom: .45rem;
    color: #40514c;
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .2px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: .82rem .95rem;
    border: 1.5px solid #e3e7e5;
    border-radius: 10px;
    font-size: .96rem;
    font-family: inherit;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--sb-dourado);
    box-shadow: 0 0 0 3.5px rgba(175, 143, 73, .16);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--sb-verde-2) 0%, var(--sb-verde) 100%);
    color: #fff;
    border: none;
    padding: .9rem;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .2px;
    transition: filter .2s ease, transform .15s ease, box-shadow .2s ease;
    margin-top: .5rem;
    box-shadow: 0 8px 20px rgba(0, 51, 46, .28);
}

.btn-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 51, 46, .36);
}

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

.forgot-password {
    display: block;
    margin-top: 1.1rem;
    text-align: center;
    color: var(--sb-dourado);
    text-decoration: none;
    font-size: .86rem;
    font-weight: 600;
}

.forgot-password:hover {
    color: var(--sb-verde);
    text-decoration: underline;
}

/* TOAST SYSTEM */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 320px;
}

.toast-alert {
    background: #fff;
    color: #333;
    border-left: 5px solid var(--sb-verde);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.toast-alert.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast-alert.success { border-left-color: #28a745; }
.toast-alert.error   { border-left-color: #dc3545; }
.toast-alert.warning { border-left-color: #ffc107; color: #333; }
.toast-alert.info    { border-left-color: #17a2b8; }

.toast-icon {
    font-size: 1.25rem;
    user-select: none;
}

select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    body { padding: 16px; }

    .container {
        flex-direction: column;
        border-radius: 22px;
        box-shadow: 0 20px 50px rgba(0, 10, 8, .4);
    }

    .left-side, .right-side {
        width: 100%;
        padding: 1.9rem 1.5rem;
        min-width: 0;
    }

    .left-side {
        order: 2;
        padding: 1.6rem;
        /* Só as bordas inferiores (última seção visível) ficam arredondadas */
        border-radius: 0 0 22px 22px;
    }

    .left-side img {
        max-width: 190px;
        width: 55%;
    }

    .left-side::after { inset: 10px; }

    .right-side {
        order: 1;
        /* As duas bordas de cima (primeira seção visível) ficam arredondadas —
           evita a "lasca" escura que aparecia quando só um canto era arredondado. */
        border-radius: 22px 22px 0 0;
        padding-top: 2.4rem;
        padding-bottom: 2.2rem;
    }

    .right-side h2 { text-align: center; font-size: 1.4rem; }
    .right-side .subtitulo { text-align: center; }
}

@media (max-width: 380px) {
    .right-side { padding: 1.9rem 1.15rem 1.8rem; }
    .right-side h2 { font-size: 1.25rem; }
}
