/* =========================================
   MENU.CSS — Login y Menú Principal
   ========================================= */

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}

body.dark-layout {
    position: relative;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, #274270 0%, transparent 55%),
        radial-gradient(circle at 12% 88%, rgba(29, 78, 216, 0.28) 0%, transparent 36%),
        radial-gradient(circle at 88% 78%, rgba(26, 50, 86, 0.7) 0%, transparent 32%),
        linear-gradient(165deg, #1a3256 0%, #0d1f3c 48%, #06101f 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
}

body.dark-layout::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    opacity: 0.45;
}

.login-container { max-width: 420px; width: 100%; position: relative; z-index: 1; }
.menu-container { max-width: 480px; width: 100%; position: relative; z-index: 1; }

.dark-layout .card {
    border: none;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow:
        0 28px 60px -16px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    border-radius: 24px;
}

.dark-layout .card-header {
    background: linear-gradient(180deg, var(--navy-soft) 0%, #ffffff 100%);
}

.brand-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.brand-icon {
    background: linear-gradient(145deg, var(--accent), #2563eb);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 8px 16px -6px rgba(29, 78, 216, 0.55);
}

.brand-sub {
    font-size: 13.5px;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 24px;
}

.menu-container .user-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 18px;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.menu-container .user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(145deg, var(--navy-2), var(--navy));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    font-family: 'DM Mono', monospace;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(13, 31, 60, 0.2);
}

.menu-container .user-pill-info { flex: 1; min-width: 0; text-align: left; }
.menu-container .user-name { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.menu-container .user-role { font-size: 12px; color: var(--secondary); margin-top: 4px; }

.nav-list { padding: 8px 24px 24px; }

.nav-section-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
    padding: 10px 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.option-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    margin-bottom: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
}

.option-card:hover {
    background: linear-gradient(90deg, #f8fbff, #ffffff);
    border-color: var(--accent-mid);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(13, 31, 60, 0.18);
}

.icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-card:hover .icon-box { transform: scale(1.06); }

.bg-purple { background: #ede9fe; color: #7c3aed; box-shadow: 0 3px 8px rgba(124, 58, 237, 0.16); }
.bg-green  { background: var(--success-bg); color: var(--success); box-shadow: 0 3px 8px rgba(5, 150, 105, 0.16); }
.bg-blue   { background: var(--accent-light); color: var(--accent); box-shadow: 0 3px 8px rgba(29, 78, 216, 0.16); }
.bg-slate  { background: var(--navy-soft); color: var(--navy); box-shadow: 0 3px 8px rgba(13, 31, 60, 0.14); }
.bg-amber  { background: var(--warning-bg); color: var(--warning); box-shadow: 0 3px 8px rgba(217, 119, 6, 0.16); }
.bg-red    { background: var(--danger-bg); color: var(--danger); box-shadow: 0 3px 8px rgba(220, 38, 38, 0.16); }

.option-info { flex: 1; }
.option-title { font-size: 14px; font-weight: 700; color: var(--navy); }
.option-desc  { font-size: 12px; color: var(--secondary); margin-top: 2px; }
.option-arrow { color: var(--muted); font-size: 12px; transition: transform 0.2s, color 0.2s; }

.option-card:hover .option-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

.card-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    color: var(--secondary);
    transition: background 0.2s, color 0.2s;
    background: var(--surface-2);
}

.card-footer-link:hover {
    background: var(--danger-bg);
    color: var(--danger);
}
