:root {
    --bg: #0a0c10;
    --bg-2: #0c1118;
    --panel: #0f151e;
    --line: #1a2230;
    --text: #e9f1fa;
    --muted: #9fb0c7;
    --brand: #42a5f5;
    --brand-2: #2e78d1;
    --radius: 18px;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

html,
body {
    background: radial-gradient(
            900px 420px at 110% -10%,
            rgba(66, 165, 245, 0.18),
            transparent 60%
        ),
        radial-gradient(
            850px 380px at -10% -10%,
            rgba(126, 87, 194, 0.16),
            transparent 60%
        ),
        linear-gradient(180deg, var(--bg) 0%, #0b0f15 100%);
    color: var(--text);
    font-family: "Noto Sans Thai", system-ui, -apple-system, Segoe UI, Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.brand-pane {
    background: radial-gradient(
            650px 300px at 30% 20%,
            rgba(66, 165, 245, 0.18),
            transparent 60%
        ),
        radial-gradient(
            600px 280px at 100% 70%,
            rgba(255, 255, 255, 0.06),
            transparent 60%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.02)
        );
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 6px);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.logo {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: 0.5px;
    line-height: 1;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #263044;
    background: rgba(255, 255, 255, 0.07);
    font-weight: 800;
}

.orb {
    position: absolute;
    filter: blur(42px);
    opacity: 0.75;
    border-radius: 50%;
    pointer-events: none;
}

.orb.blue {
    background: rgba(66, 165, 245, 0.45);
    width: 180px;
    height: 180px;
    top: 10%;
    left: 6%;
    animation: float 7s ease-in-out infinite;
}

.orb.purple {
    background: rgba(170, 142, 255, 0.34);
    width: 220px;
    height: 220px;
    right: -60px;
    top: 30%;
    animation: float 9s ease-in-out infinite reverse;
}

.orb.cyan {
    background: rgba(0, 255, 214, 0.2);
    width: 160px;
    height: 160px;
    bottom: -40px;
    left: 22%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.cardx {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.04)
    );
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: saturate(150%) blur(8px);
}

.logo-mini {
    font-family: "Bebas Neue", sans-serif;
    font-size: 28px;
    letter-spacing: 0.5px;
}

.text-mutedx {
    color: var(--muted) !important;
}

.form-control {
    background: #0e131a;
    border: 1px solid #202637;
    color: #e7f0ff;
    border-radius: 12px;
    padding: 0.9rem 3rem;
}

.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(66, 165, 245, 0.2);
    background: #0e131a;
    color: #fff;
}

.with-icon {
    position: relative;
}

.input-icon,
.toggle-pass {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
}

.input-icon {
    left: 8px;
    color: #7f8aa3;
    font-size: 18px;
}

.toggle-pass {
    right: 6px;
    border: 0;
    background: transparent;
    color: #9fb0c7;
    border-radius: 10px;
}

.toggle-pass:hover {
    background: rgba(255, 255, 255, 0.06);
}

.toggle-pass:active {
    transform: translateY(-50%) scale(0.98);
}

.form-control.is-invalid,
.form-control.is-valid,
.was-validated .form-control:invalid,
.was-validated .form-control:valid {
    background-image: none !important;
    padding-right: 3rem !important;
}

.with-icon .toggle-pass {
    z-index: 2;
}

.btn-brand {
    --g1: var(--brand);
    --g2: var(--brand-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border: 0;
    border-radius: 12px;
    color: #fff !important;
    font-weight: 900;
    letter-spacing: 0.1px;
    background: linear-gradient(135deg, var(--g1), var(--g2));
    transition: transform 0.08s ease, filter 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 16px 48px rgba(66, 165, 245, 0.3);
}

.btn-brand:hover {
    filter: brightness(1.06);
    box-shadow: 0 22px 64px rgba(66, 165, 245, 0.4);
}

.btn-brand:active {
    transform: translateY(1px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
}

.equal-row {
    align-items: stretch !important;
}

.equal-row > [class*="col"] {
    display: flex;
}

.equal-row > [class*="col"] > section {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .equal-row > [class*="col"] > section {
        height: auto;
    }
}

@media (min-width: 992px) {
    .pane-pad {
        padding: 2.2rem 2.4rem;
    }

    .pane-h {
        min-height: 640px;
    }
}

:root {
    --ph-color: #6b7686;
}

.form-control::placeholder {
    color: var(--ph-color);
    opacity: 1;
}

.form-control:focus::placeholder {
    opacity: 0.5;
}
