:root {
    --tesui-primary: #2563eb;
    --tesui-primary-dark: #1d4ed8;
    --tesui-accent: #14b8a6;
    --tesui-ink: #0f172a;
    --tesui-muted: #64748b;
    --tesui-line: rgba(148, 163, 184, .28);
    --tesui-card: rgba(255, 255, 255, .88);
    --tesui-shadow: 0 28px 90px rgba(15, 23, 42, .18);
}

html,
body.tesui-login-page {
    min-height: 100%;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--tesui-ink);
    background: #eef4ff;
}

.tesui-auth-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background:
        radial-gradient(circle at 10% 10%, rgba(20, 184, 166, .22), transparent 28%),
        radial-gradient(circle at 90% 8%, rgba(37, 99, 235, .24), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 42%, #f7fdfb 100%);
}

.tesui-auth-bg {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: .72;
    pointer-events: none;
}

.tesui-auth-bg-one {
    width: 360px;
    height: 360px;
    left: -110px;
    bottom: -120px;
    background: rgba(20, 184, 166, .20);
}

.tesui-auth-bg-two {
    width: 460px;
    height: 460px;
    right: -160px;
    top: -180px;
    background: rgba(37, 99, 235, .20);
}

.tesui-auth-wrap {
    width: min(1120px, 100%);
    min-height: 680px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--tesui-shadow);
    background: rgba(255, 255, 255, .62);
    backdrop-filter: blur(22px);
}

.tesui-auth-panel {
    position: relative;
    padding: 46px;
}

.tesui-auth-panel-left {
    color: #fff;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, .78), rgba(30, 64, 175, .62)),
        url(/images/bg-login.jpg) center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tesui-auth-panel-left::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .08), rgba(15, 23, 42, .36));
    pointer-events: none;
}

.tesui-brand-row,
.tesui-hero-content {
    position: relative;
    z-index: 1;
}

.tesui-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tesui-brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .26);
    font-weight: 800;
    letter-spacing: -.04em;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .18);
}

.tesui-brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .02em;
}

.tesui-brand-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
}

.tesui-env-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(37, 99, 235, .26);
    border: 1px solid rgba(191, 219, 254, .28);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.tesui-hero-content h1 {
    max-width: 560px;
    margin: 22px 0 14px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: .98;
    letter-spacing: -.055em;
    color: #fff;
}

.tesui-hero-content p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 16px;
    line-height: 1.75;
}

.tesui-hero-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.tesui-hero-point {
    min-height: 104px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(12px);
}

.tesui-hero-point i {
    display: block;
    margin-bottom: 12px;
    font-size: 25px;
    color: #99f6e4;
}

.tesui-hero-point span {
    display: block;
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.tesui-auth-panel-right {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,250,252,.82));
}

.tesui-login-card {
    width: min(420px, 100%);
    padding: 38px;
    border-radius: 28px;
    background: var(--tesui-card);
    border: 1px solid rgba(255, 255, 255, .92);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

.tesui-login-header {
    margin-bottom: 28px;
}

.tesui-login-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--tesui-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tesui-login-header h2 {
    margin: 0 0 8px;
    color: var(--tesui-ink);
    font-size: 30px;
    font-weight: 850;
    letter-spacing: -.045em;
}

.tesui-login-header p {
    margin: 0;
    color: var(--tesui-muted);
    font-size: 14px;
    line-height: 1.6;
}

.tesui-form-group {
    margin-bottom: 18px;
}

.tesui-form-label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 750;
}

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

.tesui-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #94a3b8;
    font-size: 20px;
    pointer-events: none;
}

.tesui-form-control.form-control {
    height: 54px;
    padding: 0 16px 0 48px;
    border: 1px solid var(--tesui-line);
    border-radius: 16px;
    color: var(--tesui-ink);
    background: rgba(255, 255, 255, .92);
    font-size: 15px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.tesui-form-control.form-control::placeholder {
    color: #94a3b8;
}

.tesui-form-control.form-control:focus {
    border-color: rgba(37, 99, 235, .58);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .11);
}

.tesui-btn-login.btn {
    width: 100%;
    height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
    background: linear-gradient(135deg, var(--tesui-primary), var(--tesui-accent));
    box-shadow: 0 18px 34px rgba(37, 99, 235, .26);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.tesui-btn-login.btn:hover,
.tesui-btn-login.btn:focus {
    color: #fff;
    transform: translateY(-1px);
    filter: saturate(1.05);
    box-shadow: 0 22px 42px rgba(37, 99, 235, .32);
}

.tesui-error {
    display: block;
    margin-top: 7px;
    color: #dc2626;
    font-size: 12px;
    font-style: normal !important;
}

.tesui-login-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--tesui-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--tesui-muted);
    font-size: 12px;
}

.tesui-login-footer strong {
    color: #334155;
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .tesui-auth-shell {
        padding: 18px;
    }

    .tesui-auth-wrap {
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 26px;
    }

    .tesui-auth-panel-left {
        min-height: 320px;
        padding: 30px;
    }

    .tesui-hero-content h1 {
        font-size: 34px;
    }

    .tesui-hero-points {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .tesui-hero-point {
        min-height: auto;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .tesui-hero-point i {
        margin: 0;
    }

    .tesui-auth-panel-right {
        padding: 24px;
    }
}

@media (max-width: 575.98px) {
    .tesui-auth-shell {
        padding: 0;
        align-items: stretch;
    }

    .tesui-auth-wrap {
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .tesui-auth-panel-left {
        min-height: 260px;
        padding: 24px;
    }

    .tesui-hero-content p,
    .tesui-hero-points {
        display: none;
    }

    .tesui-auth-panel-right {
        padding: 18px;
    }

    .tesui-login-card {
        padding: 26px 22px;
        border-radius: 22px;
    }

    .tesui-login-header h2 {
        font-size: 26px;
    }

    .tesui-login-footer {
        display: block;
    }

    .tesui-login-footer strong {
        display: block;
        margin-top: 4px;
    }
}


/* After-login short message */
.tesui-quote-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(15, 23, 42, .42), rgba(15, 23, 42, .50)),
        radial-gradient(circle at 12% 16%, rgba(20, 184, 166, .32), transparent 28%),
        radial-gradient(circle at 86% 12%, rgba(37, 99, 235, .32), transparent 30%),
        url('/images/bg-login.jpg') center/cover no-repeat;
}

.tesui-quote-shell::before {
    content: "";
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 34px;
    pointer-events: none;
}

.tesui-quote-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, .12), transparent 38%),
        rgba(15, 23, 42, .08);
    backdrop-filter: blur(3px);
    pointer-events: none;
}

.tesui-quote-card {
    width: min(640px, 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 10px;
    border-radius: 34px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .26));
    border: 1px solid rgba(255, 255, 255, .54);
    box-shadow:
        0 32px 110px rgba(0, 0, 0, .32),
        inset 0 1px 0 rgba(255, 255, 255, .72);
    backdrop-filter: blur(24px) saturate(1.25);
}

.tesui-quote-card-inner {
    position: relative;
    overflow: hidden;
    padding: 42px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .72);
}

.tesui-quote-card-inner::before,
.tesui-quote-card-inner::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.tesui-quote-card-inner::before {
    width: 220px;
    height: 220px;
    top: -120px;
    right: -80px;
    background: rgba(37, 99, 235, .14);
}

.tesui-quote-card-inner::after {
    width: 190px;
    height: 190px;
    left: -100px;
    bottom: -100px;
    background: rgba(20, 184, 166, .16);
}

.tesui-quote-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    border-radius: 24px;
    color: #fff;
    font-size: 34px;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    box-shadow: 0 20px 42px rgba(37, 99, 235, .30);
}

.tesui-quote-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: #1d4ed8;
    background: rgba(37, 99, 235, .10);
    border: 1px solid rgba(37, 99, 235, .14);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.tesui-quote-card h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -.05em;
}

.tesui-quote-text {
    position: relative;
    z-index: 1;
    margin: 20px auto 0;
    max-width: 520px;
    color: #334155;
    font-size: 18px;
    line-height: 1.75;
}

.tesui-quote-progress {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 9px;
    margin: 32px 0 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, .24);
}

.tesui-quote-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #14b8a6);
    transition: width .85s ease;
}

.tesui-quote-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #64748b;
    font-size: 14px;
}

.tesui-quote-footer strong {
    color: #0f172a;
    font-weight: 850;
}

.tesui-quote-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    background: rgba(15, 23, 42, .92);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
}

.tesui-quote-link:hover,
.tesui-quote-link:focus {
    color: #fff;
    text-decoration: none;
    background: #1e293b;
}

@media (max-width: 575.98px) {
    .tesui-quote-shell {
        padding: 18px;
    }

    .tesui-quote-shell::before {
        inset: 12px;
        border-radius: 24px;
    }

    .tesui-quote-card {
        padding: 8px;
        border-radius: 28px;
    }

    .tesui-quote-card-inner {
        padding: 32px 22px;
        border-radius: 22px;
    }

    .tesui-quote-text {
        font-size: 16px;
    }

    .tesui-quote-footer {
        display: block;
    }

    .tesui-quote-link {
        width: 100%;
        margin-top: 14px;
    }
}
