/* ══════════════════════════════════════════════════════════════════════
   login_mis.css — Estilos da página de login do Portal AppMis
   Extraído de login_mis.html para manutenção modular.
   ══════════════════════════════════════════════════════════════════════ */

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

:root {
    --background: oklch(0.16 0.05 255);
    --foreground: oklch(0.98 0.005 240);
    --panel: oklch(0.22 0.06 258);
    --card: oklch(0.22 0.06 258);
    --primary: oklch(0.72 0.18 220);
    --primary-foreground: oklch(0.15 0.05 255);
    --muted-foreground: oklch(0.72 0.03 250);
    --accent: oklch(0.30 0.08 240);
    --border: oklch(0.32 0.06 258 / 60%);
    --input: oklch(0.24 0.06 258);
    --brand-cyan: oklch(0.82 0.16 210);
    --brand-green: oklch(0.82 0.18 155);
    --gradient-hero: linear-gradient(135deg, oklch(0.16 0.05 255), oklch(0.20 0.08 245));
    --gradient-cta: linear-gradient(90deg, oklch(0.65 0.18 215), oklch(0.78 0.15 195));
    --gradient-panel: linear-gradient(160deg, oklch(0.23 0.07 258), oklch(0.19 0.06 252));
    --shadow-glow: 0 10px 40px -10px oklch(0.65 0.20 215 / 0.45);
    --shadow-panel: 0 20px 60px -20px oklch(0.05 0.05 255 / 0.8);
    --radius: 0.875rem;
}

html, body {
    background: var(--background);
    color: var(--foreground);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    height: 100%;
    overflow-x: hidden;
}

/* ===== ROOT ===== */
.portal-root {
    position: relative;
    min-height: 100dvh;
    background: var(--gradient-hero);
}

.glow-1, .glow-2 {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    z-index: 0;
}
.glow-1 {
    width: 500px; height: 500px;
    top: -160px; right: -160px;
    background: oklch(0.72 0.18 220 / 0.2);
}
.glow-2 {
    width: 400px; height: 400px;
    left: -160px; top: 33%;
    background: oklch(0.82 0.16 210 / 0.1);
}

.portal-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 20px 32px;
    min-height: 100dvh;
}

/* Desktop: full-height fixed layout */
@media (min-width: 1024px) {
    html, body { height: 100%; overflow: hidden; }
    .portal-root { height: 100vh; overflow: hidden; }
    .portal-main { height: 100%; padding: 20px 32px; min-height: unset; }
}

/* ===== TOP BADGES ===== */
.top-badges {
    display: none;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
    flex-shrink: 0;
}
.top-badges-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.neo-logo-top { height: 32px; width: auto; object-fit: contain; flex-shrink: 0; }
@media (min-width: 1024px) { .top-badges { display: flex; } }

.badge-item { display: flex; align-items: center; gap: 8px; }
.badge-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: oklch(0.72 0.18 220 / 0.15);
    display: grid; place-items: center;
}
.badge-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--brand-cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge-text { font-size: 11px; line-height: 1.3; color: var(--muted-foreground); }
.badge-text strong { font-weight: 600; color: var(--foreground); display: block; }

/* ===== GRID ===== */
.portal-grid {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Mobile: só login visível */
.carousel-section,
.right-col { display: none; }

.login-aside {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .portal-grid {
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr) 320px;
        gap: 20px;
    }
    .carousel-section,
    .right-col { display: flex; }
    .login-aside {
        max-width: unset;
        margin: unset;
    }
}

/* ===== LOGIN FORM ===== */
.login-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
    justify-content: center;
}
.login-brand { display: flex; align-items: center; gap: 8px; }
.neo-logo { height: 28px; width: auto; object-fit: contain; flex-shrink: 0; }
.brand-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gradient-cta);
    box-shadow: var(--shadow-glow);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.brand-play {
    display: block; width: 0; height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--primary-foreground);
    margin-left: 2px;
}
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.brand-name span { font-weight: 700; }
.brand-name sup { font-size: 10px; color: var(--muted-foreground); margin-left: 2px; }

.login-heading .sub-text { font-size: 12px; color: var(--muted-foreground); }
.login-heading h1 { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-top: 2px; }
.login-heading h1 span { color: var(--brand-cyan); }
.login-heading .desc { font-size: 12px; color: var(--muted-foreground); line-height: 1.6; margin-top: 6px; }

.login-form { display: flex; flex-direction: column; gap: 10px; }
.form-field label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.input-wrapper { position: relative; }
.input-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 14px; height: 14px; pointer-events: none;
    fill: none; stroke: var(--muted-foreground); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.form-input {
    width: 100%;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 36px;
    font-size: 14px;
    color: var(--foreground);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input::placeholder { color: var(--muted-foreground); }
.form-input:focus { border-color: var(--brand-cyan); box-shadow: 0 0 0 3px oklch(0.82 0.16 210 / 0.3); }

.submit-btn {
    margin-top: 2px; width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: none; border-radius: 8px;
    background: var(--gradient-cta);
    color: var(--primary-foreground);
    font-size: 14px; font-weight: 600; padding: 10px 16px;
    cursor: pointer; box-shadow: var(--shadow-glow);
    transition: opacity 0.15s, transform 0.1s;
}
.submit-btn:hover { opacity: 0.95; }
.submit-btn:active { transform: scale(0.98); }
.btn-arrow {
    width: 20px; height: 20px; border-radius: 50%;
    background: oklch(1 0 0 / 0.2);
    display: grid; place-items: center;
    transition: transform 0.15s;
}
.submit-btn:hover .btn-arrow { transform: translateX(2px); }
.btn-arrow svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.separator {
    display: flex; align-items: center; gap: 12px;
    font-size: 11px; color: var(--muted-foreground);
}
.separator::before, .separator::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.ms-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--panel);
    color: var(--foreground);
    font-size: 12px; font-weight: 500; padding: 8px 16px;
    cursor: pointer; text-decoration: none;
    transition: background 0.15s;
}
.ms-btn:hover { background: var(--accent); }

.security-badge {
    display: flex; align-items: flex-start; gap: 10px;
    border: 1px solid var(--border); border-radius: 8px;
    background: oklch(0.22 0.06 258 / 0.6); padding: 10px;
}
.security-icon {
    width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
    background: oklch(0.72 0.18 220 / 0.15);
    display: grid; place-items: center;
}
.security-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--brand-cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.security-text strong { font-size: 12px; font-weight: 600; }
.security-text p { font-size: 11px; line-height: 1.4; color: var(--muted-foreground); margin-top: 2px; }

/* ===== CAROUSEL ===== */
.carousel-section {
    position: relative; display: flex; flex-direction: column;
    overflow: hidden; border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--gradient-panel);
    box-shadow: var(--shadow-panel);
    min-height: 0;
}
.carousel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px 0; flex-shrink: 0;
}
.carousel-header h2 { font-size: 12px; font-weight: 600; opacity: 0.9; }
.carousel-counter {
    border: 1px solid oklch(0.32 0.06 258 / 0.7);
    background: oklch(0.16 0.05 255 / 0.4);
    border-radius: 999px; padding: 2px 8px;
    font-size: 11px; color: var(--muted-foreground);
}
.carousel-viewport { flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; }
.carousel-track {
    display: flex; width: 100%; align-items: center;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.slide-inner { width: 100%; height: 100%; padding: 20px; display: flex; align-items: center; justify-content: center; }

.slide-tonhia {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}
.slide-tonhia-video-wrap {
    width: 120px; height: 120px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
}
.slide-tonhia-video {
    width: 100%; height: 100%;
    object-fit: contain;
    background: transparent;
}
.slide-tonhia-content {
    flex: 1;
    min-width: 0;
}

.slide-tonhia-bubble {
    background: oklch(0.24 0.06 258);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--foreground);
    position: relative;
}
.slide-tonhia-bubble::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    border-width: 8px 8px 8px 0;
    border-style: solid;
    border-color: transparent oklch(0.24 0.06 258) transparent transparent;
    display: block;
    width: 0;
}

@media (max-width: 600px) {
    .slide-tonhia {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .slide-tonhia-bubble::after {
        left: 50%;
        top: -8px;
        transform: translateX(-50%);
        border-width: 0 8px 8px 8px;
        border-color: transparent transparent oklch(0.24 0.06 258) transparent;
    }
}

.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--border);
    background: oklch(0.16 0.05 255 / 0.6);
    backdrop-filter: blur(4px);
    display: grid; place-items: center;
    cursor: pointer; color: var(--foreground);
    opacity: 0; pointer-events: none;
    transition: background 0.15s, opacity 0.2s;
}
.carousel-section:hover .carousel-btn { opacity: 1; pointer-events: auto; }
.carousel-btn:hover { background: oklch(0.16 0.05 255 / 1); }
.carousel-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn-prev { left: 12px; }
.carousel-btn-next { right: 12px; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 12px; flex-shrink: 0; }
.dot {
    height: 6px; border-radius: 999px;
    background: var(--border); border: none; cursor: pointer;
    transition: width 0.3s, background 0.3s; width: 8px;
}
.dot.active { width: 32px; background: var(--brand-cyan); }

/* ===== RIGHT COL ===== */
.right-col { display: flex; flex-direction: column; gap: 16px; min-height: 0; }

.news-feed {
    flex-shrink: 0;
    display: flex; flex-direction: column;
    border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--gradient-panel); padding: 16px;
    box-shadow: var(--shadow-panel);
}
.news-feed-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-shrink: 0;
}
.news-feed-header h2 { font-size: 14px; font-weight: 600; }
.see-all { font-size: 11px; font-weight: 500; color: var(--brand-cyan); text-decoration: none; }
.see-all:hover { text-decoration: underline; }
.feed-list { list-style: none; overflow-y: auto; max-height: 225px; }
.feed-item {
    display: grid; grid-template-columns: 38px 1fr; gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid oklch(0.32 0.06 258 / 0.6);
}
.feed-item:last-child { border-bottom: none; padding-bottom: 0; }
.feed-date { text-align: center; }
.feed-date .day { font-size: 18px; font-weight: 700; line-height: 1; }
.feed-date .month { font-size: 9px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted-foreground); }
.feed-tag { display: flex; align-items: center; gap: 8px; }
.tag-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.tag-name { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted-foreground); }
.feed-title { font-size: 12px; font-weight: 600; line-height: 1.3; margin-top: 2px; }
.feed-desc { font-size: 11px; line-height: 1.3; color: var(--muted-foreground); margin-top: 2px; }

.quick-access {
    flex: 1; min-height: 0; overflow: hidden;
    display: flex; flex-direction: column;
    border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--gradient-panel); padding: 12px;
    box-shadow: var(--shadow-panel);
}
.quick-access h2 { font-size: 13px; font-weight: 600; margin-bottom: 8px; flex-shrink: 0; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; flex: 1; min-height: 0; }
.service-item {
    display: flex; align-items: flex-start; gap: 10px;
    border: 1px solid var(--border); border-radius: 8px;
    background: oklch(0.16 0.05 255 / 0.4);
    padding: 8px 10px; cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.service-item:hover { border-color: oklch(0.82 0.16 210 / 0.5); background: oklch(0.16 0.05 255 / 0.6); }
.service-icon {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
}
.service-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-body { min-width: 0; }
.service-num { font-size: 9px; font-weight: 700; color: var(--muted-foreground); letter-spacing: 0.04em; }
.service-name { font-size: 11px; font-weight: 700; line-height: 1.2; margin-top: 1px; }
.service-desc { font-size: 10px; line-height: 1.4; color: var(--muted-foreground); margin-top: 3px; }

/* ===== BENEFITS BAR ===== */
.benefits-bar {
    margin-top: 16px; flex-shrink: 0;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px 24px;
    border-radius: 12px; border: 1px solid var(--border);
    background: oklch(0.22 0.06 258 / 0.7); padding: 10px 16px;
}
/* Mobile: oculta benefícios individuais, mantém só a logo */
.benefits-left { display: none; }
.benefit-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted-foreground); }
.benefit-item svg { width: 14px; height: 14px; fill: none; stroke: var(--brand-cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.benefits-right { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted-foreground); width: 100%; justify-content: center; }
.mis-logo-bottom { height: 24px; width: auto; object-fit: contain; flex-shrink: 0; opacity: 0.85; }

@media (min-width: 1024px) {
    .benefits-left { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
    .benefits-left h3 { font-size: 12px; font-weight: 600; }
    .benefits-right { width: auto; justify-content: flex-end; }
}
