@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* ══ LAYOUT SPLIT ══ */
.login-wrapper {
    display: flex;
    height: 100vh;
}

/* ══ HERO (ESQUERDO) ══ */
.hero {
    flex: 0 0 58%;
    background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 45%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 56px;
}

/* Grid de pontos */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}

/* Círculos decorativos */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
}
.hero-circle-1 { width: 480px; height: 480px; bottom: -160px; right: -160px; }
.hero-circle-2 { width: 280px; height: 280px; top: -80px;  left: -80px;  background: rgba(255,255,255,.03); }

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 440px;
}

.hero-logo {
    width: 140px;
    filter: brightness(0) invert(1);
    margin-bottom: 32px;
    opacity: .95;
}

.hero-content h1 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    color: rgba(255,255,255,.85);
    font-weight: 500;
}

.hero-features li i {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
    color: #93c5fd;
}

/* ══ FORMULÁRIO (DIREITO) ══ */
.form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 40px 32px;
    overflow-y: auto;
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.login-card-header {
    margin-bottom: 28px;
}

.login-card-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.5px;
    margin-bottom: 4px;
}

.login-card-header p {
    font-size: .9rem;
    color: #64748b;
}

/* Alerta de erro */
.alert-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: .9rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Campos */
.field-wrap {
    margin-bottom: 18px;
}

.field-wrap label {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i:first-child {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .95rem;
    pointer-events: none;
}

.input-icon-wrap input {
    width: 100%;
    padding: 13px 42px 13px 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    color: #0f172a;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.input-icon-wrap input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* Botão show/hide password */
.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: .95rem;
    width: auto;
}

.toggle-pw:hover { color: #64748b; }

/* Botão entrar */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    transition: opacity .2s, transform .2s, box-shadow .2s;
    letter-spacing: .2px;
}

.btn-login:hover {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(29,78,216,.35);
}

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

.login-footer {
    text-align: center;
    margin-top: 28px;
    font-size: .8rem;
    color: #94a3b8;
}

/* ══ RESPONSIVO ══ */
@media (max-width: 768px) {
    body { overflow: auto; }
    .login-wrapper { flex-direction: column; height: auto; min-height: 100vh; }
    .hero {
        flex: none;
        padding: 32px 24px;
    }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-features { display: none; }
    .form-side { padding: 32px 20px; }
    .login-card { max-width: 100%; }
}
