/* ─── LOGIN PAGE ─────────────────────────────── */
.login-body { background: #080d18; }

.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ── PAINEL ESQUERDO ── */
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1120;
    padding: 60px 48px;
}

.login-inner {
    width: 100%;
    max-width: 520px;
}

.login-brand {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 10px;
    line-height: 1;
    text-align: center;
}
.brand-trace { color: #fff; }
.brand-sol   { color: #22d3ee; }

.login-tagline {
    font-size: 17px;
    color: #64748b;
    margin-bottom: 56px;
    text-align: center;
}

.login-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    text-align: center;
}

/* Fields */
.login-form { display: flex; flex-direction: column; gap: 24px; }

.field-group { display: flex; flex-direction: column; gap: 10px; }
.field-group label {
    font-size: 17px;
    font-weight: 600;
    color: #e2e8f0;
}

.field-wrap {
    display: flex;
    align-items: center;
    background: #0f1a2e;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    padding: 0 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field-wrap:focus-within {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34,211,238,0.1);
}

.field-icon {
    color: #475569;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-right: 12px;
}
.field-icon svg { width: 18px; height: 18px; }

.field-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-size: 17px;
    padding: 19px 0;
}
.field-wrap input::placeholder { color: #2d3f5a; }

/* Sobrescreve fundo branco do autocomplete do navegador */
.field-wrap input:-webkit-autofill,
.field-wrap input:-webkit-autofill:hover,
.field-wrap input:-webkit-autofill:focus,
.field-wrap input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 100px #0f1a2e inset !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    caret-color: #e2e8f0;
    transition: background-color 9999s ease-in-out 0s;
}


.field-eye {
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    margin-left: 10px;
    transition: color 0.15s;
}
.field-eye svg { width: 18px; height: 18px; }
.field-eye:hover { color: #94a3b8; }

/* Select módulo */
.field-wrap select {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-size: 17px;
    padding: 19px 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.field-wrap select option {
    background: #0f1a2e;
    color: #e2e8f0;
}
.field-select-arrow {
    color: #475569;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 8px;
    pointer-events: none;
}
.field-select-arrow svg { width: 16px; height: 16px; }

/* Módulo bloqueado */
.modulo-blocked {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.3);
    color: #fbbf24;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 10px;
}
.modulo-blocked svg { flex-shrink: 0; width: 16px; height: 16px; }

/* Button */
.btn-login {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.4px;
    margin-top: 8px;
    transition: opacity 0.2s, transform 0.1s;
    box-shadow: 0 6px 28px rgba(6,182,212,0.35);
}
.btn-login:hover  { opacity: 0.92; }
.btn-login:active { transform: scale(0.99); }

.login-forgot {
    text-align: center;
    font-size: 14px;
    color: #22d3ee;
    text-decoration: none;
}
.login-forgot:hover { text-decoration: underline; }

/* ── PAINEL DIREITO ── */
.login-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #060d18;
    overflow: hidden;
}

.login-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.login-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 24, 0.65);
    z-index: 1;
}

.login-hero-accent {
    position: absolute;
    left: 0;
    top: 18%;
    height: 64%;
    width: 3px;
    background: linear-gradient(180deg, transparent, #22d3ee 40%, #10b981 70%, transparent);
    border-radius: 2px;
    z-index: 2;
}

.login-hero-content {
    position: relative;
    z-index: 2;
    padding: 64px;
}

.login-hero-title {
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 28px;
}
.hero-cyan { color: #22d3ee; }

.login-hero-sub {
    font-size: 18px;
    color: #64748b;
    line-height: 1.7;
}
