/* ==========================================================================
   Talent Portal — Public stylesheet
   Matches the split-screen design shown in the reference screenshots.
   ========================================================================== */

:root {
    --tp-accent: #2563eb;
    --tp-accent-hover: #1d4ed8;
    --tp-ink: #0f172a;
    --tp-ink-soft: #475569;
    --tp-line: #e2e8f0;
    --tp-bg: #ffffff;
    --tp-bg-soft: #f8fafc;
    --tp-success: #16a34a;
    --tp-danger: #dc2626;
    --tp-radius: 10px;
    --tp-radius-sm: 6px;
}

* { box-sizing: border-box; }

html, body.tp-body {
    margin: 0;
    padding: 0;
    background: var(--tp-bg);
    color: var(--tp-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* hide admin bar margin on portal pages */
body.tp-body.admin-bar { padding-top: 0 !important; }
body.tp-body #wpadminbar { display: none !important; }

/* =========================================== Split screen */
.tp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.tp-split-left {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
}

.tp-split-right {
    background: linear-gradient(180deg, #0b1733 0%, #15264e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {
    .tp-split { grid-template-columns: 1fr; }
    .tp-split-right { display: none; }
    .tp-split-left { padding: 32px 24px; }
}

/* =========================================== Form wrap */
.tp-form-wrap {
    width: 100%;
    max-width: 380px;
}

.tp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
}

.tp-brand-mark {
    width: 36px;
    height: 36px;
    background: var(--tp-accent);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.tp-brand-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--tp-ink);
}

.tp-h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--tp-ink);
    letter-spacing: -0.01em;
}

.tp-sub {
    color: var(--tp-ink-soft);
    margin: 0 0 28px;
    font-size: 14px;
}

/* =========================================== Form */
.tp-form { display: block; }

.tp-label {
    display: block;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--tp-ink-soft);
    margin: 14px 0 6px;
    font-weight: 600;
}

.tp-input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: var(--tp-radius-sm);
    font-size: 14px;
    color: var(--tp-ink);
    transition: border-color 0.15s, background 0.15s;
}
.tp-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--tp-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.tp-input[readonly] { background: #e2e8f0; cursor: not-allowed; }

.tp-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tp-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--tp-ink-soft);
    margin: 16px 0 8px;
}

.tp-btn-primary {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-top: 18px;
    background: var(--tp-accent);
    color: #fff;
    border: none;
    border-radius: var(--tp-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.tp-btn-primary:hover { background: var(--tp-accent-hover); }
.tp-btn-primary span { margin-left: 4px; }

.tp-foot {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--tp-ink-soft);
}
.tp-foot a {
    color: var(--tp-accent);
    text-decoration: none;
    font-weight: 600;
}

.tp-alert {
    padding: 10px 12px;
    border-radius: var(--tp-radius-sm);
    margin: 0 0 14px;
    font-size: 13px;
}
.tp-alert-error { background: #fef2f2; color: var(--tp-danger); border: 1px solid #fecaca; }

/* =========================================== Right hero */
.tp-hero { max-width: 460px; }

.tp-hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 18px;
    color: #fff;
}
.tp-hero-sub {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 32px;
}

.tp-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tp-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 14px;
}

.tp-feat-ico {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
    flex-shrink: 0;
}
.tp-feat-ico-1 { background: rgba(99, 102, 241, 0.25); }
.tp-feat-ico-2 { background: rgba(168, 85, 247, 0.25); }
.tp-feat-ico-3 { background: rgba(59, 130, 246, 0.25); }
.tp-feat-ico-4 { background: rgba(34, 197, 94, 0.25); }


/* ==========================================================================
   Employee Dashboard
   ========================================================================== */
.tp-app {
    min-height: 100vh;
    background: var(--tp-bg-soft);
}

.tp-topbar {
    background: #fff;
    border-bottom: 1px solid var(--tp-line);
}
.tp-topbar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tp-topbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}
.tp-greet { color: var(--tp-ink); font-weight: 600; }
.tp-link-muted {
    color: var(--tp-ink-soft);
    text-decoration: none;
    font-size: 13px;
}
.tp-link-muted:hover { color: var(--tp-accent); }

.tp-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.tp-hello { margin-bottom: 28px; }

.tp-progress-card {
    background: #fff;
    border: 1px solid var(--tp-line);
    border-radius: var(--tp-radius);
    padding: 24px;
    margin-bottom: 32px;
}
.tp-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.tp-progress-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.tp-progress-pct {
    font-size: 18px;
    font-weight: 700;
    color: var(--tp-accent);
}
.tp-progress-meta {
    margin: 12px 0 0;
    color: var(--tp-ink-soft);
    font-size: 13px;
}

/* progress bar */
.tp-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
}
.tp-bar-lg { height: 10px; }
.tp-bar-fill {
    background: var(--tp-accent);
    height: 100%;
    transition: width 0.4s ease;
}

/* tasks */
.tp-tasks h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--tp-ink);
}

.tp-task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tp-task {
    background: #fff;
    border: 1px solid var(--tp-line);
    border-radius: var(--tp-radius);
    padding: 18px 18px 18px 14px;
    margin-bottom: 12px;
    display: flex;
    gap: 14px;
    transition: border-color 0.15s, background 0.15s;
}
.tp-task.is-complete {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.tp-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 2px;
    transition: all 0.15s;
}
.tp-check:hover {
    border-color: var(--tp-accent);
}
.tp-check-inner {
    color: transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.tp-task.is-complete .tp-check {
    background: var(--tp-success);
    border-color: var(--tp-success);
}
.tp-task.is-complete .tp-check-inner {
    color: #fff;
}

.tp-task-body { flex: 1; min-width: 0; }
.tp-task-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.tp-task-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--tp-ink);
}
.tp-task.is-complete .tp-task-title {
    text-decoration: line-through;
    color: var(--tp-ink-soft);
}

.tp-task-type {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--tp-ink-soft);
    font-weight: 600;
}
.tp-task-type-video       { background: #ede9fe; color: #6d28d9; }
.tp-task-type-acknowledge { background: #fef3c7; color: #b45309; }
.tp-task-type-external    { background: #dbeafe; color: #1d4ed8; }

.tp-task-content {
    color: var(--tp-ink-soft);
    font-size: 14px;
    line-height: 1.55;
}
.tp-task-content p:first-child { margin-top: 6px; }
.tp-task-content p:last-child  { margin-bottom: 0; }

.tp-video-wrap {
    margin-top: 12px;
    max-width: 560px;
}
.tp-video-wrap iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: var(--tp-radius-sm);
}

.tp-link-btn {
    display: inline-block;
    padding: 8px 14px;
    background: var(--tp-accent);
    color: #fff;
    border-radius: var(--tp-radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.tp-empty {
    text-align: center;
    padding: 60px 20px;
}
