.login-shell {
    min-height: 100vh;
    height: 100vh;
    background: linear-gradient(135deg, #d1fae5, #f0fdf4);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
}

.login-layout {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    overflow: hidden;
    height: 100vh;
}

.login-visual {
    position: relative;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.2), rgba(37, 99, 235, 0.2));
}

.login-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.login-panel {
    padding: clamp(2rem, 5vw, 3.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    overflow: hidden;
}

.login-panel .auth-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.login-panel .orb {
    display: none;
}

@media (max-width: 991.98px) {
    .login-shell {
        padding: 1rem;
        min-height: auto;
        height: auto;
        background: var(--ts-body);
    }

    .login-layout {
        grid-template-columns: 1fr;
        height: auto;
        border-radius: 1.5rem;
        box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
        max-width: 420px;
        margin: 0 auto;
    }

    .login-visual {
        display: block;
        height: 260px;
        border-bottom-left-radius: 32% 24%;
        border-bottom-right-radius: 32% 24%;
        overflow: hidden;
    }

    .login-visual .login-hero-img {
        object-position: center top;
        transform: scale(1.05);
    }

    .login-panel {
        padding: 2rem;
        overflow: visible;
        background: #fff;
        gap: 1rem;
    }

    .login-panel .auth-brand {
        display: none;
    }

    .login-panel h2 {
        font-size: 1.85rem;
        text-align: left;
    }

    .login-panel p {
        text-align: left;
    }
}

:root {
    --ts-primary: #2563eb;
    --ts-secondary: #0f172a;
    --ts-accent: #f97316;
    --ts-muted: #64748b;
    --ts-surface: #ffffff;
    --ts-body: #f8fafc;
    --ts-brand-primary: #0a53be;
    --ts-brand-accent: #ff7b00;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--ts-body);
    color: var(--ts-secondary);
    min-height: 100vh;
}

.panel-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.panel-shell.has-sidebar-open .panel-sidebar {
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(15, 23, 42, 0.2);
}

.panel-sidebar {
    width: 260px;
    background: #ffffff;
    color: var(--ts-secondary);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .panel-shell {
        position: relative;
    }

    .panel-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        transform: translateX(-100%);
        transition: transform .3s ease;
        z-index: 1050;
        height: 100vh;
        width: 260px;
    }

    .panel-sidebar__overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease;
        z-index: 1040;
    }

    .panel-shell.has-sidebar-open .panel-sidebar__overlay {
        opacity: 1;
        visibility: visible;
    }

    .panel-shell.has-sidebar-open .panel-sidebar {
        transform: translateX(0);
    }

    .topbar {
        justify-content: space-between !important;
    }

    .topbar-toggle-btn {
        display: inline-flex;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(15, 23, 42, 0.08);
        align-items: center;
        justify-content: center;
        margin-right: auto;
        margin-left: -0.5rem;
    }
}

.panel-sidebar__brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.panel-sidebar__brand h6 {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--ts-muted);
}

.panel-sidebar__brand .panel-sidebar__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--ts-secondary);
    font-size: .95rem;
}

.panel-sidebar__brand .badge {
    font-weight: 600;
    font-size: .7rem;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem .9rem;
    border-radius: .9rem;
    text-decoration: none;
    color: var(--ts-secondary);
    font-weight: 500;
    transition: all .2s ease;
    border: 1px solid transparent;
}

.sidebar-link:hover {
    background: rgba(37, 99, 235, 0.08);
    color: var(--ts-primary);
}

.sidebar-link.is-active {
    background: #eef2ff;
    color: var(--ts-primary);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.sidebar-link__body {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.sidebar-link__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ts-primary);
    font-size: 1rem;
}

.sidebar-link__badge {
    min-width: 28px;
    height: 24px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--ts-secondary);
    font-size: .75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.panel-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--ts-body);
}

.panel-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
}

.panel-content {
    flex: 1;
    width: 100%;
}

.bg-login {
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.15), transparent 50%),
                radial-gradient(circle at 80% 0%, rgba(249, 115, 22, 0.2), transparent 45%),
                var(--ts-body);
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

.dream-gradient {
    background: linear-gradient(135deg, #d9f99d, #a7f3d0 50%, #f9fafb);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(15, 23, 42, 0.08);
    object-fit: cover;
    background-color: #fff;
}

.dashboard-shell {
    max-width: 1200px;
}

.panel-wrapper {
    display: block;
}

.panel-card {
    background-color: var(--ts-surface);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.panel-table-wrapper {
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.panel-table-actions .btn {
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .panel-table thead {
        display: none;
    }

    .panel-table tr {
        display: block;
        background: var(--ts-surface);
        border-radius: 1rem;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
        border: 1px solid rgba(15, 23, 42, 0.08);
    }

    .panel-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .35rem 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    }

    .panel-table td:last-child {
        border-bottom: 0;
    }

    .panel-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--ts-muted);
        margin-right: 1.5rem;
        flex: 0 0 40%;
    }

    .panel-table td[data-label="Acciones"] {
        flex-direction: column;
        gap: .5rem;
        align-items: flex-start;
    }

    .panel-table-actions {
        width: 100%;
    }

    .panel-table-actions .btn {
        flex: 1 1 auto;
        width: 100%;
        justify-content: center;
    }
}

.status-card {
    border-radius: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.status-card h3 {
    font-size: 2rem;
    margin-bottom: .25rem;
}

.status-card span {
    color: var(--ts-muted);
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    border-radius: .75rem;
    color: var(--ts-secondary);
    text-decoration: none;
    transition: all .2s ease;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--ts-primary);
}

.job-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.job-meta {
    font-size: .9rem;
    color: var(--ts-muted);
}

.hero-banner {
    background: radial-gradient(circle at top left, #dbeafe, #eff6ff 40%, #fff 70%);
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 1rem;
    border-radius: 1.25rem;
    border: 1px dashed rgba(37, 99, 235, .25);
}

.hero-banner h1 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.badge-soft {
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}

.badge-soft.primary { background-color: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.badge-soft.danger { background-color: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.badge-soft.success { background-color: rgba(16, 185, 129, 0.12); color: #047857; }
.badge-soft.info    { background-color: rgba(14, 165, 233, 0.12); color: #0369a1; }
.badge-soft.warning { background-color: rgba(245, 158, 11, 0.15); color: #b45309; }

.timeline {
    border-left: 2px solid rgba(15, 23, 42, 0.08);
    padding-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: .25rem;
    width: .75rem;
    height: .75rem;
    background-color: var(--ts-primary);
    border-radius: 50%;
}

.auth-card {
    max-width: 440px;
    width: 100%;
    border-radius: 1.25rem;
    padding: 2rem;
    backdrop-filter: blur(6px);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.brand-logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    background: rgba(37, 99, 235, 0.15);
    color: var(--ts-primary);
}

.auth-form .form-control,
.auth-form .form-select {
    padding: .85rem 1rem;
    border-radius: .85rem;
}

.auth-screen {
    max-width: 520px;
}

.back-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: var(--ts-brand-accent);
    background: rgba(255, 123, 0, 0.15);
    padding: .5rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: transform .2s ease;
}

.back-pill:hover {
    transform: translateX(-2px);
    color: var(--ts-brand-accent);
}

.glassy {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(6, 95, 70, 0.1);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
}

.orb {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #86efac, #34d399);
    border-radius: 50%;
    opacity: .25;
    filter: blur(10px);
}

.brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(4px);
    color: #047857;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.role-toggle {
    background: rgba(6, 95, 70, 0.08);
    border-radius: 999px;
    padding: .25rem;
}

.btn-role {
    border: none;
    border-radius: 999px !important;
    color: #065f46;
    font-weight: 600;
}

.btn-check:checked + .btn-role {
    background: #10b981;
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.35);
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(6, 95, 70, 0.15);
    border-radius: .85rem;
    padding: .1rem .85rem;
}

.input-icon__symbol {
    color: rgba(6, 95, 70, 0.7);
    font-size: 1rem;
    display: inline-flex;
}

.fancy-input {
    background: transparent;
    border: none;
    padding-left: 0;
    padding-right: 0;
}

.fancy-input:focus {
    box-shadow: none;
}

.icon-field { display: none; }

.toggle-password {
    margin-left: auto;
    background: transparent;
    border: none;
    color: rgba(6, 95, 70, 0.6);
    padding: 0;
}

.toggle-password:focus-visible {
    outline: 2px solid rgba(16, 185, 129, 0.5);
    border-radius: 999px;
}

.login-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
}

.btn-gradient {
    background: linear-gradient(135deg, rgba(10, 83, 190, 0.95), rgba(10, 83, 190, 0.8));
    border: none;
    padding: .95rem;
    border-radius: 999px;
    font-weight: 600;
    color: white;
    box-shadow: 0 15px 35px rgba(10, 83, 190, 0.35);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, rgba(10, 83, 190, 1), rgba(7, 60, 140, 0.95));
}

.btn-outline-light {
    border-radius: 999px;
    border-color: rgba(6, 95, 70, 0.2);
}

.footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--ts-muted);
}
