*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --bg:        #04061b;
    --border:    #1e2530;
    --surface:   #11121a;
    --lime:      #8ec127;
    --lime-dark: #7fad23;
    --accent2:   #4c8fc9;
    --text:      #ffffff;
    --caption:   #e8e4da;
    --muted:     #6b7280;
    --error:     #e05252;
    --card:      #161c26;
}
html, body {
    height: 100%;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}
.page {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}
.left {
    display: flex;
    user-select: none;
    flex-direction: column;
    justify-content: center;
    padding: 60px 64px;
    border-right: 1px solid var(--border);
    animation: fadeLeft 0.9s cubic-bezier(.16,1,.3,1) both;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--caption);
    text-decoration: none;
    text-transform: uppercase;
    margin-bottom: 64px;
    transition: color 0.2s;
}
.back-link:hover { color: var(--lime); }
.back-link span { font-size: 14px; }

.brand-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--lime);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.left h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--caption);
}
.left h1 em {
    font-style: normal;
    color: var(--lime);
}
.left p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 340px;
}
.v-rule {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--lime), transparent);
    margin: 40px 0;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.info-item .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--lime);
    flex-shrink: 0;
}
.info-item span {
    font-size: 13px;
    color: var(--muted);
}
.right {
    display: flex;
    user-select: none;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    animation: fadeRight 0.9s 0.15s cubic-bezier(.16,1,.3,1) both;
}
.card {
    width: 100%;
    max-width: 400px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 48px 40px 40px;
    position: relative;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lime), var(--accent2));
    border-radius: 2px 2px 0 0;
}
.card-header {
    margin-bottom: 36px;
}
.card-header .step {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--accent2);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.card-header h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--caption);
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--caption);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.input-wrap {
    position: relative;
}
.input-wrap .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
    opacity: 0.7;
}
input[type="text"] {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 13px 14px 13px 40px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    letter-spacing: 0.03em;
}
input[type="text"]::placeholder {
    color: var(--muted);
    opacity: 0.6;
}
input[type="text"]:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}
.btn-submit {
    width: 100%;
    background: var(--lime);
    color: #0b0e14;
    border: none;
    border-radius: 2px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 15px;
    cursor: pointer;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    background: var(--lime-dark);
    box-shadow: 0 8px 24px rgba(142, 193, 39, 0.25);
}

.btn-submit:disabled {
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading {
    background: var(--lime);
    background-image: url('../img/spinner.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 24px 24px;
    color: transparent;
    pointer-events: none;
    cursor: wait;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 0;
}
.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.form-divider span {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.2em;
}
.card-footer-note {
    margin-top: 20px;
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}
.whatsapp {
    position: fixed;
    right: 40px;
    bottom: 60px;
    height: 40px;
    width: 40px;
    cursor: pointer;
    background-image: url('../img/whatsapp.svg');
    background-repeat: no-repeat;
    background-size: 40px;
    z-index: 2;
    user-select: none;
}

/* ── MENSAGEM ALERTE ── */
.toast-message {
    z-index: 999999 !important;
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 90vw; 
    width: auto;
    min-width: 400px; 
    white-space: pre-wrap; 
    word-wrap: break-word; 
    padding: 20px 30px 20px 60px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 15px;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    animation: toast-in 0.4s ease forwards;
    background-repeat: no-repeat;
    background-position: 20px center;
    background-size: 25px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
    border: none;
    margin: 0;
}

/* Remove o backdrop padrão do dialog */
.toast-message::backdrop {
    background: transparent;
}

/* Ajusta o posicionamento quando o dialog está aberto */
.toast-message[open] {
    display: flex;
    position: fixed;
    inset: auto;
    bottom: 30px;
    right: 30px;
}

.toast-message::after {
    content: "×";
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    font-weight: bold;
    opacity: 0.7;
    pointer-events: none;
}
.toast-message::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 5px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    animation: toast-bar 3s forwards;
}
.toast-success {
    background-color: #28a745;
    background-image: url('../img/alert-success.svg');
}
.toast-error {
    background-color: #cb0606;
    background-image: url('../img/alert-error.svg');
}
.toast-info {
    background-color: #0d6efd;
    background-image: url('../img/alert-info.svg');
}
.toast-warning {
    background-color: #503d2f;
    background-image: url('../img/alert-warning.svg');
}
@keyframes toast-bar {
    0% {
      width: 0;
    }
    100% {
      width: 100%;
    }
}
@keyframes toast-in {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes toast-out {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    .toast-message {
        bottom: auto;   
        top: 20px;
        right: 20px;
        left: 20px; 
        width: calc(100% - 40px); 
        min-width: auto; 
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {

    .page { grid-template-columns: 1fr; }
    .left {
        padding: 40px 28px 32px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .left h1 { font-size: 40px; }
    .v-rule, .info-item { display: none; }
    .left p { max-width: 100%; }
    .right { padding: 36px 20px 48px; }
    .card { padding: 36px 24px 32px; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--lime-dark); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--lime); }