﻿/* =========
   BT Login (Glass + Hero)
   Uses CSS variables if you already have them in your BT theme.
   ========= */

:root {
    --bt-navy: #000065;
    --bt-green: #96a780;
    --bt-charcoal: #2b303a;
    --bt-surface: rgba(255,255,255,0.78);
    --bt-surface-strong: rgba(255,255,255,0.92);
    --bt-border: rgba(43,48,58,0.14);
    --bt-shadow: 0 20px 60px rgba(0,0,0,0.20);
}

.bt-login {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2.5rem 0;
    overflow: hidden;
}

/* Background */
.bt-login-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bt-slides {
    position: absolute;
    inset: 0;
}

.bt-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.2s ease, transform 8s ease;
    filter: blur(6px) saturate(1.05);
}

    .bt-slide.is-active {
        opacity: 1;
        transform: scale(1.12);
    }

.bt-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 700px at 20% 25%, rgba(150,167,128,0.35), transparent 60%), radial-gradient(900px 600px at 85% 35%, rgba(0,0,101,0.35), transparent 60%), linear-gradient(180deg, rgba(10,12,18,0.65), rgba(10,12,18,0.55));
}

.bt-bg-noise {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: repeating-linear-gradient( 0deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06) 1px, transparent 1px, transparent 3px );
}

.bt-login-shell {
    position: relative;
    z-index: 1;
}

/* Hero panel */
.bt-hero {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.16));
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: var(--bt-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.bt-hero-inner {
    height: 100%;
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.bt-hero-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bt-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--bt-green);
    box-shadow: 0 0 0 6px rgba(150,167,128,0.20);
}

.bt-hero-title {
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #fff;
}

.bt-hero-sub {
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
}

.bt-hero-mid {
    margin-top: 22px;
    flex: 1;
}

.bt-hero-h1 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.15;
    margin: 0 0 16px 0;
    font-size: clamp(1.6rem, 2.2vw, 2.3rem);
}

.bt-accent {
    color: var(--bt-green);
}

.bt-hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.85);
    margin-bottom: 14px;
    font-size: 0.92rem;
}

.bt-hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

    .bt-hero-list li {
        display: flex;
        gap: 10px;
        color: rgba(255,255,255,0.82);
        font-size: 1rem;
    }

    .bt-hero-list i {
        color: var(--bt-green);
        margin-top: 3px;
    }

.bt-hero-bottom {
    margin-top: 18px;
}

.bt-hero-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.bt-mini-kpi {
    padding: 12px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.bt-mini-kpi-num {
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
}

.bt-mini-kpi-label {
    color: rgba(255,255,255,0.70);
    font-size: 0.85rem;
}

.bt-hero-footnote {
    color: rgba(255,255,255,0.70);
    font-size: 0.9rem;
}

/* Login card */
.bt-card {
    border-radius: 28px;
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    box-shadow: var(--bt-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bt-card-head {
    padding: 18px 18px 14px 18px;
    background: rgba(255,255,255,0.55);
    border-bottom: 1px solid rgba(43,48,58,0.10);
}

.bt-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bt-brand-logo {
    height: 30px;
    width: auto;
}

.bt-brand-name {
    font-weight: 800;
    color: var(--bt-charcoal);
    letter-spacing: 0.2px;
}

.bt-brand-sub {
    color: rgba(43,48,58,0.75);
    font-size: 0.92rem;
}

.bt-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,101,0.08);
    color: var(--bt-navy);
    border: 1px solid rgba(0,0,101,0.15);
    font-weight: 700;
    font-size: 0.85rem;
}

.bt-typewriter {
    margin-top: 10px;
    color: rgba(43,48,58,0.75);
    font-size: 0.95rem;
}

.bt-typewriter-muted {
    color: rgba(43,48,58,0.55);
    margin-right: 6px;
}

.bt-typewriter-text {
    color: var(--bt-charcoal);
    font-weight: 700;
}

.bt-card-body {
    padding: 18px;
}

.bt-card-foot {
    padding: 14px 18px 18px 18px;
    border-top: 1px solid rgba(43,48,58,0.08);
    background: rgba(255,255,255,0.55);
}

/* Buttons */
.bt-submit {
    border-radius: 16px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--bt-navy), rgba(0,0,101,0.78));
    border: 1px solid rgba(0,0,0,0.08);
}

    .bt-submit .bt-submit-text {
        display: block;
        font-weight: 800;
    }

    .bt-submit .bt-submit-sub {
        display: block;
        font-size: 0.86rem;
        opacity: 0.85;
    }

.bt-secondary {
    border-radius: 14px;
    padding: 10px 12px;
}

.bt-link {
    text-decoration: none;
}

.bt-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 14px 0;
    color: rgba(43,48,58,0.55);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

    .bt-divider::before,
    .bt-divider::after {
        content: "";
        height: 1px;
        flex: 1;
        background: rgba(43,48,58,0.12);
    }

/* Loading overlay */
.bt-loading {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,12,18,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bt-loading-card {
    width: min(420px, calc(100% - 40px));
    background: var(--bt-surface-strong);
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 22px;
    box-shadow: var(--bt-shadow);
    padding: 22px;
    text-align: center;
}

/* Mobile: tighten paddings */
@media (max-width: 767px) {
    .bt-login {
        padding: 1.5rem 0;
    }

    .bt-card {
        border-radius: 22px;
    }

    .bt-card-head, .bt-card-body, .bt-card-foot {
        padding-left: 14px;
        padding-right: 14px;
    }
}
