/* ============================================================
   SETESC Gestão — Login Split Screen
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; overflow: hidden; height: 100vh; }

/* ===== SPLIT CONTAINER ===== */
.split-container { display: flex; height: 100vh; width: 100vw; }

/* ===== LADO ESQUERDO ===== */
.split-left {
    flex: 1.1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    /* FUNDO: troque por sua imagem aqui */
    /* background: url('../img/bg-login.jpg') center/cover no-repeat; */
    background: linear-gradient(135deg, #0a1628 0%, #0f2847 40%, #1a3f6f 70%, #0d2240 100%);
}

/* Overlay escuro (use se colocar imagem de fundo) */
.brand-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,.85) 0%, rgba(15,40,71,.7) 50%, rgba(26,63,111,.6) 100%);
    z-index: 1;
}

/* Efeito de partículas/brilho */
.split-left::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(26,86,219,.2), transparent 60%);
    top: -150px; right: -100px;
    border-radius: 50%;
    z-index: 2;
    animation: float 8s ease-in-out infinite;
}
.split-left::after {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(5,150,105,.12), transparent 60%);
    bottom: -80px; left: -50px;
    border-radius: 50%;
    z-index: 2;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.brand-content {
    position: relative; z-index: 3;
    text-align: center;
    padding: 40px;
    max-width: 420px;
}

.brand-logo { margin-bottom: 24px; }
.brand-logo img { max-width: 140px; max-height: 140px; filter: drop-shadow(0 4px 20px rgba(0,0,0,.4)); }
.brand-logo-fallback {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #1a56db, #3b82f6);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: #fff; font-weight: 800;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(26,86,219,.4);
}

.brand-title {
    font-size: 28px; font-weight: 800; color: #fff;
    letter-spacing: -.5px;
    margin-bottom: 4px;
}
.brand-subtitle {
    font-size: 14px; color: rgba(255,255,255,.6);
    font-weight: 500;
    margin-bottom: 4px;
}
.brand-org {
    font-size: 12px; color: rgba(255,255,255,.4);
    line-height: 1.5;
    margin-bottom: 40px;
}

/* Features */
.brand-features { text-align: left; }
.feature-item {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 0;
    color: rgba(255,255,255,.7);
    font-size: 13px;
    font-weight: 500;
}
.feature-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    color: #60a5fa;
    flex-shrink: 0;
}

.brand-footer {
    position: absolute; bottom: 24px; left: 0; right: 0;
    text-align: center; z-index: 3;
    color: rgba(255,255,255,.25);
    font-size: 11px; font-weight: 500;
}

/* ===== LADO DIREITO ===== */
.split-right {
    flex: 0.9;
    min-width: 440px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.right-content {
    width: 100%;
    max-width: 380px;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 32px;
}
.tab-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 9px;
    cursor: pointer;
    transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tab-btn:hover { color: #334155; }
.tab-btn.active {
    background: #fff;
    color: #1a56db;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.tab-btn i { font-size: 14px; }

/* ===== PANELS ===== */
.tab-panel { display: none; animation: fadeIn .3s ease; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }

.panel-title {
    font-size: 24px; font-weight: 800; color: #0f172a;
    margin-bottom: 4px;
    letter-spacing: -.5px;
}
.panel-subtitle {
    font-size: 14px; color: #94a3b8;
    margin-bottom: 28px;
}

/* ===== FORM FIELDS ===== */
.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-size: 12px; font-weight: 700; color: #374151;
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 6px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all .2s;
    background: #fff;
}
.input-wrap:focus-within {
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.input-wrap > i {
    position: absolute; left: 14px;
    font-size: 16px; color: #94a3b8;
    pointer-events: none;
}
.input-wrap input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    border-radius: 12px;
}
.input-wrap input::placeholder { color: #cbd5e1; }

.toggle-pass {
    position: absolute; right: 12px;
    background: none; border: none;
    cursor: pointer; padding: 4px;
    color: #94a3b8;
    font-size: 16px;
}
.toggle-pass:hover { color: #64748b; }

.select-field {
    width: 100%;
    padding: 13px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: all .2s;
    cursor: pointer;
}
.select-field:focus {
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}

.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

/* ===== BOTÃO PRINCIPAL ===== */
.btn-primary-full {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px; font-weight: 700;
    font-family: inherit;
    background: linear-gradient(135deg, #1a56db, #2563eb);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all .25s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 16px rgba(26,86,219,.3);
    margin-top: 8px;
}
.btn-primary-full:hover {
    background: linear-gradient(135deg, #1543a8, #1d4ed8);
    box-shadow: 0 8px 28px rgba(26,86,219,.4);
    transform: translateY(-1px);
}
.btn-primary-full:active { transform: translateY(0); }

/* ===== ALERTAS ===== */
.alert-box {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}
.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ===== SERVIDOR CARD ===== */
.servidor-card {
    display: flex; align-items: center; gap: 14px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.servidor-avatar {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    flex-shrink: 0;
}
.servidor-card strong { display: block; font-size: 14px; color: #0c4a6e; }
.servidor-card small { font-size: 12px; color: #64748b; }

.link-subtle {
    color: #64748b; font-size: 13px; text-decoration: none; font-weight: 500;
}
.link-subtle:hover { color: #1a56db; }

/* ===== FOOTER ===== */
.right-footer {
    text-align: center;
    margin-top: 32px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 500;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
    .split-container { flex-direction: column; }
    .split-left {
        flex: none; height: 200px; min-height: 200px;
    }
    .brand-content { padding: 20px; }
    .brand-features { display: none; }
    .brand-org { margin-bottom: 0; }
    .brand-title { font-size: 22px; }
    .brand-footer { display: none; }
    .split-right { flex: 1; min-width: auto; padding: 24px; }
}

@media (max-width: 500px) {
    .split-left { height: 160px; }
    .brand-logo img { max-width: 60px; }
    .brand-title { font-size: 18px; }
    .brand-subtitle, .brand-org { display: none; }
    .right-content { max-width: 100%; }
    .tabs { flex-direction: column; }
}
