/* ==========================================================================
   SMALT — Theme v2 / Auth (login) page styles
   Everything is scoped under .tv2-auth so the new theme stays fully isolated
   from the legacy Metronic/Bootstrap layout. No Bootstrap classes are used.
   ========================================================================== */

.tv2-auth *,
.tv2-auth *::before,
.tv2-auth *::after {
    box-sizing: border-box;
}

html.tv2-auth-html,
body.tv2-auth {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

.tv2-auth {
    background: var(--tv2-bg);
    color: var(--tv2-ink);
    font-family: var(--tv2-font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tv2-auth ::placeholder {
    color: var(--tv2-faint);
}

/* ---- Layout shell -------------------------------------------------------- */
.tv2-shell {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
}

/* ---- Left: login form --------------------------------------------------- */
.tv2-formpane {
    position: relative;
    flex: 1;
    min-width: 380px;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: var(--tv2-bg);
    background-image:
        radial-gradient(560px 360px at 20% -10%, rgba(15, 182, 164, .08), transparent 60%),
        linear-gradient(rgba(11, 18, 32, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 18, 32, .025) 1px, transparent 1px);
    background-size: auto, 34px 34px, 34px 34px;
}

/* ---- Right: command-center panel ---------------------------------------- */
.tv2-panel {
    position: relative;
    flex: 1.25;
    min-width: 440px;
    min-height: 560px;
    overflow: hidden;
    background: radial-gradient(120% 100% at 0% 0%, var(--tv2-night), var(--tv2-night-2) 60%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 38px 46px;
}

.tv2-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
}
.tv2-aurora--1 {
    width: 480px; height: 480px; left: -120px; top: -140px;
    background: radial-gradient(circle, rgba(15, 182, 164, .5), transparent 62%);
}
.tv2-aurora--2 {
    width: 440px; height: 440px; right: -120px; top: 120px;
    background: radial-gradient(circle, rgba(21, 151, 201, .42), transparent 62%);
}
.tv2-aurora--3 {
    width: 380px; height: 380px; left: 30%; bottom: -160px;
    background: radial-gradient(circle, rgba(113, 88, 230, .34), transparent 62%);
}

.tv2-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(120% 90% at 40% 30%, #000, transparent 78%);
    mask-image: radial-gradient(120% 90% at 40% 30%, #000, transparent 78%);
}

.tv2-panel__row {
    position: relative;
    z-index: 2;
}

/* Brand */
.tv2-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}
.tv2-brand__logo {
    display: block;
    height: 32px;
    width: auto;
}
.tv2-brand__sep {
    width: 1px; height: 22px;
    background: rgba(255, 255, 255, .18);
}
.tv2-brand__tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .62);
    text-transform: uppercase;
}

/* Hero copy */
.tv2-hero {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 520px;
}
.tv2-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 13px;
    border-radius: var(--tv2-r-pill);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.tv2-live__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--tv2-ok);
}
.tv2-live__text {
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .82);
    font-family: var(--tv2-font-mono);
}
.tv2-headline {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1.4px;
    line-height: 1.12;
    color: #fff;
    margin: 0;
}
.tv2-headline span {
    background: linear-gradient(90deg, #2bd4c0, #28a8d8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.tv2-lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
    max-width: 460px;
}
.tv2-lead b {
    color: #fff;
    font-weight: 600;
}
.tv2-features {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tv2-features li {
    display: flex;
    align-items: center;
    gap: 11px;
}
.tv2-features__ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 7px;
    background: rgba(15, 182, 164, .16);
    border: 1px solid rgba(15, 182, 164, .32);
    color: var(--tv2-brand);
    flex-shrink: 0;
}
.tv2-features li span:last-child {
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .86);
}

/* Panel footer signature */
.tv2-signature {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-family: var(--tv2-font-mono);
    color: rgba(255, 255, 255, .45);
}

.tv2-card {
    position: relative;
    width: 100%;
    max-width: 392px;
    background: var(--tv2-surface);
    border: 1px solid var(--tv2-line);
    border-radius: var(--tv2-r-lg);
    box-shadow: var(--tv2-shadow-card);
    padding: 30px 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.tv2-card::before {
    content: "";
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--tv2-brand), var(--tv2-accent));
}

.tv2-card__logo {
    display: block;
    height: 52px;
    width: auto;
    margin: 0 auto 4px;
}

.tv2-card__head {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 2px;
}
.tv2-card__title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.3px;
}
.tv2-card__sub {
    font-size: 12.5px;
    color: var(--tv2-slate);
}

/* Error banner */
.tv2-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border-radius: var(--tv2-r);
    background: var(--tv2-danger-soft);
    border: 1px solid var(--tv2-danger-line);
    color: var(--tv2-danger);
    font-size: 12.5px;
    font-weight: 500;
}
.tv2-alert svg { flex-shrink: 0; }

/* Fields */
.tv2-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.tv2-field__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--tv2-ink-2);
}
.tv2-input {
    height: 46px;
    width: 100%;
    border-radius: var(--tv2-r);
    border: 1px solid var(--tv2-line);
    background: var(--tv2-surface-2);
    padding: 0 14px;
    font-size: 14px;
    font-family: var(--tv2-font-mono);
    color: var(--tv2-ink);
    outline: none;
    transition: border-color var(--tv2-t), background var(--tv2-t), box-shadow var(--tv2-t);
}
.tv2-input:focus {
    border-color: var(--tv2-accent);
    background: var(--tv2-surface);
    box-shadow: var(--tv2-focus-ring);
}

.tv2-pw {
    position: relative;
    display: flex;
    align-items: center;
}
.tv2-pw .tv2-input { padding-right: 46px; }
.tv2-pw__toggle {
    position: absolute;
    right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border: none;
    background: transparent;
    color: var(--tv2-faint);
    cursor: pointer;
    border-radius: var(--tv2-r-sm);
    transition: color var(--tv2-t), background var(--tv2-t);
}
.tv2-pw__toggle:hover,
.tv2-pw__toggle:focus-visible {
    color: var(--tv2-ink);
    background: var(--tv2-surface-2);
    outline: none;
}

/* Submit */
.tv2-submit {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border: 1px solid var(--tv2-ink);
    border-radius: var(--tv2-r);
    background: var(--tv2-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--tv2-shadow-btn);
    transition: background var(--tv2-t), box-shadow var(--tv2-t), transform var(--tv2-t);
}
.tv2-submit:hover {
    background: #161f30;
    box-shadow: var(--tv2-shadow-btn-hover);
}
.tv2-submit:active { transform: translateY(1px); }
.tv2-submit:focus-visible {
    outline: none;
    box-shadow: var(--tv2-focus-ring), var(--tv2-shadow-btn);
}

/* Footer meta */
.tv2-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--tv2-faint);
    font-family: var(--tv2-font-mono);
}
.tv2-meta a {
    color: var(--tv2-slate);
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    transition: color var(--tv2-t);
}
.tv2-meta a:hover,
.tv2-meta a:focus-visible {
    color: var(--tv2-ink);
    outline: none;
}
.tv2-meta__dot {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--tv2-line-2);
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
    .tv2-shell { flex-direction: column; }
    .tv2-panel {
        flex: none;
        min-width: 0;
        min-height: auto;
        padding: 30px 26px 34px;
    }
    .tv2-hero { gap: 16px; }
    .tv2-headline { font-size: 30px; }
    .tv2-features { display: none; }
    .tv2-formpane {
        flex: none;
        min-width: 0;
        min-height: auto;
        padding: 30px 20px 44px;
    }
}

@media (max-width: 480px) {
    .tv2-panel { padding: 24px 20px 28px; }
    .tv2-headline { font-size: 26px; }
    .tv2-card { padding: 24px 22px 22px; }
}

