/* ── Tokens ─────────────────────────────────────────────────── */
:root {
    --lp-font:        "Inter", "Aptos", Arial, sans-serif;
    --lp-red:         #C8102E;
    --lp-red-dark:    #A50D25;
    --lp-red-soft:    #FDECEF;
    --lp-red-pale:    #FFF1F2;
    --lp-red-icon:    rgba(200, 16, 46, 0.10);
    --lp-ink-900:     #111827;
    --lp-ink-700:     #374151;
    --lp-ink-600:     #6B7280;
    --lp-ink-400:     #9CA3AF;
    --lp-border:      #E5E7EB;
    --lp-page-bg:     #F2F4F7;
    --lp-white:       #FFFFFF;
    --lp-card-shadow: 0 16px 48px rgba(17, 24, 39, 0.13);
}

/* ── Bootstrap override — neutralize containers ───────────────── */
.container-fluid { padding: 0 !important; }
main { padding: 0 !important; }

/* ── Page root — takes full viewport, bypasses Bootstrap ─────── */
.tcc-page-root {
    position: fixed;
    inset: 0;
    background: var(--lp-page-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    font-family: var(--lp-font);
    box-sizing: border-box;
}

/* ── Outer container (topbar + card + footer) ─────────────────── */
.tcc-login-outer {
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

/* Language bar */
.tcc-topbar {
    display: flex;
    justify-content: flex-end;
}

.tcc-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-family: var(--lp-font);
    color: var(--lp-ink-600);
    padding: 6px 12px;
    border: 1px solid var(--lp-border);
    border-radius: 8px;
    background: var(--lp-white);
    cursor: default;
    user-select: none;
}

/* ── The card ────────────────────────────────────────────────── */
.tcc-login-wrapper {
    display: flex;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--lp-card-shadow);
}

/* ═══════════════════════════════════════════════════════════════
   LEFT PANEL
═══════════════════════════════════════════════════════════════ */
.tcc-left-panel {
    width: 44%;
    background: var(--lp-red-pale);
    padding: 28px 34px 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tcc-left-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 28px;
    flex-shrink: 0;
}

.tcc-left-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 110px;
}

.tcc-left-body h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--lp-ink-900);
    line-height: 1.28;
    letter-spacing: -0.3px;
    margin: 0 0 11px;
}

.tcc-left-body > p {
    font-size: 13px;
    color: var(--lp-ink-600);
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 300px;
}

/* Feature list */
.tcc-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tcc-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tcc-feat-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--lp-red-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--lp-red);
    font-size: 13px;
}

.tcc-feature-list li div strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lp-ink-900);
    margin-bottom: 1px;
    font-family: var(--lp-font);
}

.tcc-feature-list li div span {
    font-size: 12px;
    color: var(--lp-ink-600);
    font-family: var(--lp-font);
}

/* City skyline */
.tcc-city-decor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 110px;
    pointer-events: none;
}

.tcc-city-decor svg {
    width: 100%;
    height: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   RIGHT PANEL
═══════════════════════════════════════════════════════════════ */
.tcc-right-panel {
    width: 56%;
    background: var(--lp-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 44px;
}

/* ── Form Card ───────────────────────────────────────────────── */
.tcc-form-card {
    width: 100%;
    max-width: 360px;
    text-align: center;
    animation: tccFadeUp 0.4s ease;
}

.tcc-brand-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #FDECEF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.tcc-badge-icon {
    font-size: 34px;
    color: var(--lp-red);
}

.tcc-form-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--lp-ink-900);
    letter-spacing: -0.3px;
    margin: 0 0 4px;
    font-family: var(--lp-font);
}

.tcc-subtitle {
    font-size: 13.5px;
    color: var(--lp-ink-600);
    margin-bottom: 20px;
    font-family: var(--lp-font);
}

/* ── Field ───────────────────────────────────────────────────── */
.tcc-field-group {
    text-align: left;
    margin-bottom: 12px;
}

.tcc-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--lp-ink-700);
    margin-bottom: 5px;
    font-family: var(--lp-font);
}

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

.tcc-field-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lp-ink-400);
    font-size: 14px;
    pointer-events: none;
}

.tcc-input-wrap input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1px solid var(--lp-border);
    border-radius: 9px;
    font-size: 14px;
    font-family: var(--lp-font);
    color: var(--lp-ink-900);
    background: var(--lp-white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tcc-input-wrap input:focus {
    border-color: var(--lp-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.09);
}

.tcc-input-wrap input::placeholder { color: var(--lp-ink-400); }

/* ── Row options ─────────────────────────────────────────────── */
.tcc-row-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
}

.tcc-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--lp-ink-600);
    font-family: var(--lp-font);
    cursor: pointer;
    user-select: none;
}

.tcc-remember input[type="checkbox"] {
    accent-color: var(--lp-red);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.tcc-forgot {
    color: var(--lp-red);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--lp-font);
    text-decoration: none;
}
.tcc-forgot:hover { text-decoration: underline; }

/* ── Continue Button ─────────────────────────────────────────── */
.tcc-btn-continue {
    width: 100%;
    padding: 11px;
    background: var(--lp-red);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--lp-font);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-bottom: 16px;
}

.tcc-btn-continue:hover:not([disabled]) {
    background: var(--lp-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.25);
}

.tcc-btn-continue:active { transform: none; box-shadow: none; }
.tcc-btn-continue[disabled] {
    background: var(--lp-red-soft);
    color: var(--lp-red);
    border: 1.5px solid rgba(200, 16, 46, 0.25);
    opacity: 1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Bottom links ────────────────────────────────────────────── */
.tcc-bottom-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tcc-bottom-links a {
    font-size: 13px;
    color: var(--lp-red);
    font-weight: 500;
    font-family: var(--lp-font);
    text-decoration: none;
}
.tcc-bottom-links a:hover { text-decoration: underline; }

/* ── OTP nav ─────────────────────────────────────────────────── */
.tcc-otp-nav {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 14px;
}

.tcc-otp-nav a { color: var(--lp-ink-600); font-family: var(--lp-font); text-decoration: none; }
.tcc-otp-nav a:hover { text-decoration: underline; }

/* ── Alert banners ───────────────────────────────────────────── */
.tcc-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--lp-red-soft);
    color: var(--lp-red);
    border: 1px solid rgba(200, 16, 46, 0.18);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--lp-font);
    margin-bottom: 12px;
    text-align: left;
}

.tcc-success {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ECFDF5;
    color: #15803D;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--lp-font);
    margin-top: 10px;
}

/* ── Page footer ─────────────────────────────────────────────── */
.tcc-page-footer {
    font-size: 12px;
    color: var(--lp-ink-400);
    font-family: var(--lp-font);
    text-align: center;
}

/* ── Loader overlay ──────────────────────────────────────────── */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 5, 10, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.tcc-loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: tccFadeUp 0.25s ease both;
}

.tcc-loader-ring {
    position: relative;
    width: 72px;
    height: 72px;
}

.tcc-loader-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 56px;
    height: 56px;
    margin: 8px;
    border: 5px solid transparent;
    border-radius: 50%;
    animation: tcc-spin 1.1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.tcc-loader-ring div:nth-child(1) { border-top-color: #C8102E;              animation-delay: -0.30s; }
.tcc-loader-ring div:nth-child(2) { border-top-color: rgba(200,16,46,0.65); animation-delay: -0.20s; }
.tcc-loader-ring div:nth-child(3) { border-top-color: rgba(200,16,46,0.35); animation-delay: -0.10s; }
.tcc-loader-ring div:nth-child(4) { border-top-color: rgba(200,16,46,0.12); }

@keyframes tcc-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tcc-loader-text {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
    opacity: 0.9;
}

/* ── Animation ───────────────────────────────────────────────── */
@keyframes tccFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 820px) {
    .tcc-left-panel { display: none; }
    .tcc-right-panel { width: 100%; }
    .tcc-login-wrapper { border-radius: 16px; }
}

@media (max-width: 480px) {
    .tcc-page-root { padding: 16px; }
    .tcc-right-panel { padding: 28px 20px; }
    .tcc-form-card { max-width: 100%; }
}
