/* ==================== LOGIN SPECIFIC STYLES ==================== */
.auth {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    min-height: 100vh;
}

/* ============ ESQUERDA: BRAND (sempre dark) ============ */
.auth__brand {
    position: relative;
    overflow: hidden;
    padding: 54px 58px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #eaf2ec;
    background:
        radial-gradient(1100px 560px at 18% 8%, rgba(0, 201, 92, .20), transparent 58%),
        radial-gradient(820px 460px at 92% 96%, rgba(0, 201, 92, .12), transparent 55%),
        linear-gradient(155deg, #0a0e0b 0%, #0a130d 46%, #070f0a 100%);
}
.auth__brand::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 26% 36%, #000 0%, transparent 72%);
    mask-image: radial-gradient(circle at 26% 36%, #000 0%, transparent 72%);
    opacity: .7;
}
.auth__orb {
    position: absolute;
    width: 460px; height: 460px;
    border-radius: 50%;
    filter: blur(64px);
    opacity: .42;
    background: radial-gradient(circle, rgba(0, 201, 92, .85), transparent 68%);
    animation: drift 16s ease-in-out infinite;
    z-index: 0;
}
.auth__orb--a { top: -120px; left: -80px; }
.auth__orb--b { bottom: -160px; right: -60px; width: 540px; height: 540px; animation-duration: 22s; animation-direction: reverse; opacity: .30; }
@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.08); }
}
.brand__top, .brand__mid, .brand__bottom { position: relative; z-index: 1; }
.brand__logo { display: flex; align-items: center; gap: 14px; }
.brand__logo img { width: 48px; height: 48px; }
.brand__logo b { font-size: 22px; font-weight: 700; letter-spacing: .2px; }
.brand__logo span { display: block; font-size: 11.5px; color: #79c79a; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; margin-top: 2px; }
.brand__mid { max-width: 470px; }
.brand__kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: .4px;
    color: #8ff0b6;
    background: rgba(0, 201, 92, .12);
    border: 1px solid rgba(0, 201, 92, .25);
    padding: 6px 14px; border-radius: 100px; margin-bottom: 22px;
}
.brand__kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 0 rgba(41, 224, 122, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(41, 224, 122, .55); } 70% { box-shadow: 0 0 0 9px rgba(41, 224, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(41, 224, 122, 0); } }
.brand__title {
    font-size: 38px; line-height: 1.15; font-weight: 800;
    letter-spacing: -.6px; margin: 0 0 16px;
    background: linear-gradient(180deg, #ffffff 30%, #b9e9cd 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand__sub { font-size: 15.5px; line-height: 1.6; color: #aebcb1; margin: 0 0 30px; }
.brand__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.brand__list li { display: flex; align-items: center; gap: 13px; font-size: 14.5px; color: #cfe0d5; }
.brand__list .ck {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 201, 92, .14); border: 1px solid rgba(0, 201, 92, .3); color: var(--green-2);
}
.brand__bottom { font-size: 12.5px; color: #6f8077; }

/* ============ DIREITA: FORM ============ */
.auth__panel {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 28px;
    background: var(--bg);
    transition: background 0.2s;
}
.auth__top { position: absolute; top: 22px; right: 24px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.theme-toggle {
    width: 40px; height: 40px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    background: var(--card); border: 1px solid var(--input-bd); color: var(--muted);
    cursor: pointer; transition: .18s;
}
.lang-switch { position: relative; }
.lang-btn {
    height: 40px; padding: 0 13px; border-radius: 11px;
    display: flex; align-items: center; gap: 7px;
    background: var(--card); border: 1px solid var(--input-bd); color: var(--muted);
    cursor: pointer; font-size: 13px; font-weight: 700; font-family: inherit; transition: .18s;
}
.lang-btn:hover, .theme-toggle:hover { color: var(--text); border-color: var(--green); }
.lang-btn .globe { width: 17px; height: 17px; }
.lang-btn .chev { width: 13px; height: 13px; opacity: .7; }
.lang-menu {
    position: absolute; top: 48px; right: 0; min-width: 172px;
    background: var(--card); border: 1px solid var(--input-bd); border-radius: 12px;
    box-shadow: var(--shadow); padding: 6px; display: none; z-index: 100;
}
.lang-menu.open { display: block; animation: rise .18s ease both; }
.lang-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: 8px; font-size: 13.5px;
    color: var(--text); text-decoration: none;
}
.lang-menu a:hover { background: var(--card-2); }
.lang-menu a.active { color: var(--green); font-weight: 600; }
.lang-menu a .fl { font-size: 16px; line-height: 1; }

.theme-toggle svg { width: 19px; height: 19px; }
.ico-sun, .ico-moon { display: none; }
html[data-theme="dark"] .ico-sun { display: block; }
html[data-theme="light"] .ico-moon { display: block; }

.card {
    width: 100%; max-width: 410px;
    background: var(--card);
    border: 1px solid var(--input-bd);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 38px 36px 30px;
    animation: rise .5s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card__head { margin-bottom: 24px; }
.card__logo-sm { display: none; }
.card h1 { font-size: 24px; font-weight: 700; letter-spacing: -.3px; margin: 0 0 6px; color: var(--text-heading); }
.card__sub { font-size: 13.5px; color: var(--muted); margin: 0; }

.field { position: relative; margin-bottom: 15px; }
.field__ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    background: var(--input-bg);
    color: var(--input-text);
    border: 1px solid var(--input-bd);
    border-radius: 12px;
    padding: 14px 14px 14px 44px;
    font-size: 14.5px;
    outline: 0;
    transition: border-color .15s, box-shadow .15s, background .15s;
    font-family: inherit;
}
.login-form input::placeholder { color: var(--muted); }
.login-form input:focus { border-color: var(--green); box-shadow: 0 0 0 4px var(--ring); }
.login-form input.error { border-color: #ef4444 !important; }
.field__eye {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border: 0; background: none; color: var(--muted);
    cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.field__eye:hover { color: var(--text); }
.field__eye .eye-off { display: none; }
.field__eye.is-on .eye-on { display: none; }
.field__eye.is-on .eye-off { display: block; }

.remember { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; margin: 8px 0 22px; user-select: none; }
.remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.remember__box {
    flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
    border: 1.5px solid var(--input-bd); background: var(--input-bg); position: relative; transition: .15s;
}
.remember input:checked + .remember__box { background: var(--green); border-color: var(--green); }
.remember__box::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--green-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .15s; }
.remember input:checked + .remember__box::after { transform: rotate(45deg) scale(1); }
.remember__txt { font-size: 13.5px; color: var(--text); line-height: 1.25; }
.remember__txt small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.btn-primary {
    width: 100%; border: 0; cursor: pointer;
    background: var(--green, #10b981);
    color: #ffffff !important; font-weight: 600; font-size: 15px; font-family: inherit;
    padding: 13px; border-radius: 10px; letter-spacing: .2px;
    box-shadow: 0 4px 14px var(--green-glow);
    transition: background-color .15s, box-shadow .15s;
}
.btn-primary:hover { background: var(--green-hover, #059669); color: #ffffff !important; box-shadow: 0 6px 18px rgba(16, 185, 129, .35); }

.links { text-align: center; margin-top: 20px; display: flex; justify-content: center; gap: 16px; }
.links a { color: var(--link); text-decoration: none; font-size: 13px; transition: color .15s; }
.links a:hover { color: var(--green); }
.back-link { display: inline-block; margin-top: 16px; color: var(--link); text-decoration: none; font-size: 13px; }
.back-link:hover { color: var(--green); }

.form-head { margin-bottom: 18px; text-align: center; }
.form-head h2 { font-size: 18px; margin: 0 0 6px; font-weight: 700; color: var(--text-heading); }
.form-head p { font-size: 13px; color: var(--muted); margin: 0; }

.error-message { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .3); color: #ff6b6b; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; text-align: center; }
.success-message { background: rgba(0, 201, 92, .12); border: 1px solid rgba(0, 201, 92, .3); color: var(--green-2); padding: 11px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; text-align: center; }

.code-input input { text-align: center; letter-spacing: 6px; font-size: 20px !important; font-weight: 700; padding-left: 14px !important; }

.logo-for-dark { display: none; }
.logo-for-light { display: none; }
html[data-theme="dark"] .logo-for-dark { display: block; }
html[data-theme="light"] .logo-for-light { display: block; }

@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; min-height: 100vh; }
    .auth__brand { display: none; }
    .auth__panel { padding-top: 72px; padding-bottom: 32px; }
    .card__logo-sm { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; }
    .card__logo-sm img { width: 42px; height: 42px; }
    .card__logo-sm b { font-size: 20px; font-weight: 700; color: var(--text-heading); }
    .card { max-width: 440px; padding: 32px 24px 26px; }
}
@media (max-width: 480px) {
    .auth__panel { padding-left: 14px; padding-right: 14px; }
    .card { padding: 26px 18px 22px; border-radius: 16px; }
}
