:root {
    --tv-primary: #009fe3;
    --tv-primary-dark: #007bb7;
    --tv-primary-deep: #045f91;
    --tv-primary-soft: #eaf8fe;
    --tv-ink: #18212f;
    --tv-muted: #667085;
    --tv-border: #e4e9f0;
    --tv-surface: #ffffff;
}

* { box-sizing: border-box; }

body { color: var(--tv-ink); }

a { text-decoration: none; }

.tv-auth-page {
    background: #f8fafc;
    min-height: 100vh;
}

.tv-auth-visual {
    position: relative;
    width: 52%;
    min-height: 100vh;
    padding: 56px 64px;
    align-items: stretch;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.22), transparent 26%),
        radial-gradient(circle at 86% 80%, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(145deg, #0189ca 0%, var(--tv-primary) 47%, #15bce7 100%);
}

.tv-auth-visual::before,
.tv-auth-visual::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    pointer-events: none;
}

.tv-auth-visual::before {
    width: 520px;
    height: 520px;
    right: -250px;
    top: 95px;
}

.tv-auth-visual::after {
    width: 340px;
    height: 340px;
    left: -170px;
    bottom: -90px;
}

.tv-visual-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.tv-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.tv-brand-light { color: #fff; }
.tv-brand-dark { color: var(--tv-ink); }

.tv-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.tv-brand-light .tv-brand-mark { background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.28); }
.tv-brand-dark .tv-brand-mark { background: var(--tv-primary-soft); color: var(--tv-primary-dark); }

.tv-brand-mark svg,
.tv-field-icon svg,
.tv-password-toggle svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tv-hero-copy {
    margin: auto 0 42px;
    max-width: 600px;
    color: #fff;
}

.tv-kicker,
.tv-form-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
    margin-bottom: 16px;
}

.tv-kicker { color: rgba(255,255,255,.78); }
.tv-form-kicker { color: var(--tv-primary-dark); }

.tv-hero-copy h1 {
    color: #fff;
    font-size: clamp(40px, 4.4vw, 66px);
    line-height: 1.03;
    letter-spacing: -2.5px;
    font-weight: 800;
    margin-bottom: 22px;
}

.tv-hero-copy p {
    color: rgba(255,255,255,.84);
    font-size: 18px;
    line-height: 1.65;
    max-width: 550px;
    margin: 0;
}

.tv-plan-preview {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 22px;
    color: #fff;
    box-shadow: 0 22px 60px rgba(0, 74, 111, .16);
}

.tv-plan-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.tv-plan-preview-head span { display: block; color: rgba(255,255,255,.70); font-size: 13px; margin-bottom: 3px; }
.tv-plan-preview-head strong { display: block; color: #fff; font-size: 16px; }

.tv-live-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #b8ffdb;
    box-shadow: 0 0 0 6px rgba(184,255,219,.14);
}

.tv-periods {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.tv-periods span {
    padding: 11px 8px;
    text-align: center;
    border-radius: 11px;
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.13);
    font-weight: 650;
    font-size: 12px;
}

.tv-register-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tv-register-points span {
    background: rgba(255,255,255,.10);
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 13px;
}

.tv-auth-form-side {
    width: 48%;
    background: #fff;
}

.tv-auth-form-side h4 {
    color: var(--tv-ink);
    font-size: 32px;
    letter-spacing: -.8px;
}

.tv-input-wrap { position: relative; }

.tv-field-icon {
    position: absolute;
    z-index: 2;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 21px;
    height: 21px;
    color: #7b8798;
    pointer-events: none;
}

.tv-field-icon svg { width: 20px; height: 20px; }

.tv-auth-input { padding-left: 52px !important; padding-right: 48px !important; }

.tv-auth-form-side .form-control {
    border: 1px solid var(--tv-border);
    color: var(--tv-ink);
    transition: .18s ease;
}

.tv-auth-form-side .form-control:focus {
    border-color: rgba(0,159,227,.72);
    box-shadow: 0 0 0 4px rgba(0,159,227,.10);
    background: #fff !important;
}

.tv-password-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: #7b8798;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 3;
}

.tv-password-toggle svg { width: 19px; height: 19px; }
.tv-password-toggle:hover,
.tv-password-toggle.is-visible { color: var(--tv-primary-dark); }
.tv-password-toggle-compact { right: 4px; }

.tv-btn-primary {
    background: linear-gradient(135deg, var(--tv-primary) 0%, #008bc9 100%);
    border: 1px solid var(--tv-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0,159,227,.20);
}

.tv-btn-primary:hover,
.tv-btn-primary:focus {
    background: linear-gradient(135deg, #008fcd 0%, var(--tv-primary-dark) 100%);
    border-color: var(--tv-primary-dark);
    color: #fff;
}

.tv-btn-outline {
    border: 1px solid #cfd8e4;
    color: #344054;
    background: #fff;
    font-weight: 700;
}

.tv-btn-outline:hover { border-color: var(--tv-primary); color: var(--tv-primary-dark); background: var(--tv-primary-soft); }
.tv-link-primary { color: var(--tv-primary-dark); }

.tv-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 18px;
    color: #98a2b3;
    font-size: 12px;
}

.tv-auth-divider::before,
.tv-auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #edf0f4;
}

.tv-auth-help {
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
    margin-top: 24px;
}

.tv-alert-success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
}

.tv-client-role-note {
    margin-top: 18px;
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--tv-primary-soft);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #27566e;
}

.tv-client-role-note strong,
.tv-client-role-note small { display: block; }
.tv-client-role-note strong { font-size: 13px; margin-bottom: 1px; }
.tv-client-role-note small { color: #648194; font-size: 11px; }

.tv-client-role-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: var(--tv-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.tv-panel-placeholder-body {
    min-height: 100vh;
    margin: 0;
    background: #f5f7fa;
}

.tv-panel-placeholder {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.tv-panel-placeholder-card {
    width: min(920px, 100%);
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 18px 50px rgba(16,24,40,.08);
    padding: 36px;
}

.tv-panel-placeholder-card h2 { margin: 14px 0 8px; font-size: 32px; }
.tv-panel-placeholder-card > p { color: var(--tv-muted); max-width: 700px; }

.tv-role-badge {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--tv-primary-soft);
    color: var(--tv-primary-dark);
    font-size: 12px;
    font-weight: 800;
}

.tv-role-client { background: #ecfdf3; color: #067647; }

.tv-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.tv-placeholder-grid > div {
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    padding: 18px;
    background: #fbfcfd;
}

.tv-placeholder-grid strong,
.tv-placeholder-grid span { display: block; }
.tv-placeholder-grid strong { color: #1d2939; margin-bottom: 5px; }
.tv-placeholder-grid span { color: #667085; font-size: 13px; }

@media (max-width: 1199.98px) {
    .tv-auth-visual { padding: 46px; }
    .tv-hero-copy h1 { font-size: 48px; }
}

@media (max-width: 991.98px) {
    .tv-auth-form-side { width: 100%; min-height: 100vh; }
    .tv-register-side { padding-top: 28px !important; padding-bottom: 28px !important; }
}

@media (max-width: 575.98px) {
    .tv-auth-form-side { padding-left: 20px !important; padding-right: 20px !important; }
    .tv-auth-form-side h4 { font-size: 28px; }
    .tv-placeholder-grid { grid-template-columns: 1fr; }
    .tv-panel-placeholder-card { padding: 26px 20px; }
}
