*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --bg:        #04061b;
    --border:    #1e2530;
    --surfece:   #04061b;
    --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;
}
.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;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrap .icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    pointer-events: none;
    opacity: 0.7;
}
input[type="text"],
input[type="password"] {
    flex: 1;
    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,
input[type="password"]::placeholder {
    color: var(--muted);
    opacity: 0.6;
}
input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}

.toggle-password {
    position: absolute;
    right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    background-image: url('../img/eye.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 19px 19px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toggle-password:hover {
    opacity: 1;
}

.toggle-password.off {
    background-image: url('../img/eye-off.svg');
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.error {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8d7da;
    padding: 8px 0;
    border-radius: 4px;
    color: #cb0606;
    margin-top: 8px;
}

/* ── EXTRAS ── */
.extras {
    margin-top: 20px;
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: var(--muted);
}
.extras a {
    color: var(--lime);
    text-decoration: none;
}
.extras a:hover {
    text-decoration: underline;
}
.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.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-origin: border-box;
    background-size: 40px;
    z-index: 2;
}
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.15em;
    border-top: 1px solid var(--border);
}
/* ── ANIMATIONS ── */
@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
/* ── RESPONSIVE ── */
@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); }