/* =========================================================
   BROKERSTATS LOGIN PAGE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
    background: #07111f;
    overflow: hidden;
}


/* =========================================================
   BACKGROUND
========================================================= */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
}

.login-background {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.36), transparent 34%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.24), transparent 36%),
        linear-gradient(135deg, #07111f 0%, #0f172a 48%, #08111f 100%);
    z-index: 0;
}

.login-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.035) 45%,
            transparent 55%
        );
    animation: backgroundSweep 7s ease-in-out infinite;
}

.login-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(5px);
    opacity: 0.75;
    animation: floatOrb 8s ease-in-out infinite;
}

.login-orb-one {
    width: 270px;
    height: 270px;
    background: rgba(37, 99, 235, 0.28);
    top: 12%;
    left: 10%;
}

.login-orb-two {
    width: 210px;
    height: 210px;
    background: rgba(56, 189, 248, 0.22);
    right: 12%;
    bottom: 14%;
    animation-delay: 1.5s;
}

.login-orb-three {
    width: 130px;
    height: 130px;
    background: rgba(147, 197, 253, 0.20);
    right: 34%;
    top: 17%;
    animation-delay: 3s;
}

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

    50% {
        transform: translateY(-18px) translateX(12px);
    }
}

@keyframes backgroundSweep {
    0%, 100% {
        transform: translateX(-30%);
        opacity: 0.22;
    }

    50% {
        transform: translateX(30%);
        opacity: 0.60;
    }
}


/* =========================================================
   CENTER LAYOUT
========================================================= */

.login-shell {
    position: relative;
    z-index: 2;
    width: min(460px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: panelEnter 0.7s ease both;
}

@keyframes panelEnter {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   WHITE LOGIN CARD
========================================================= */

.login-panel {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 38px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(37, 99, 235, 0.08);
    transition: transform 0.15s ease;
    transform-style: preserve-3d;
}

.login-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 34px;
    right: 34px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #38bdf8, #2563eb);
}

.login-panel::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -130px;
    top: -150px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.13), transparent 70%);
    pointer-events: none;
}

.panel-light {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 68%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.login-panel:hover .panel-light {
    opacity: 1;
}


/* =========================================================
   BRAND
========================================================= */

.login-brand {
    display: flex;
    justify-content: center;
    margin-top: 28px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.login-wordmark {
    width: min(320px, 92%);
    height: auto;
    display: block;
    object-fit: contain;
}


/* =========================================================
   HEADING
========================================================= */

.login-heading {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 28px;
}

.login-heading h1 {
    color: #0f172a;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.login-heading p {
    margin-top: 8px;
    color: #64748b;
    font-size: 15px;
}

/* =========================================================
   HEADING TITLE ROW
========================================================= */

.login-title-row {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 10px;
}

.login-title-row h1 {
    margin: 0;
    text-align: center;
}

.login-title-spacer {
    width: 40px;
    height: 40px;
}

/* =========================================================
   BACK TO HUB ICON BUTTON
========================================================= */

.back-hub-icon {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;

    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;

    cursor: pointer;
    position: relative;
    overflow: hidden;

    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.30);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.back-hub-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.36), transparent);
    transform: skewX(-22deg);
    transition: 0.5s ease;
}

.back-hub-icon:hover {
    transform: translateY(-2px) translateX(-2px);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.42);
}

.back-hub-icon:hover::before {
    left: 130%;
}

.back-hub-svg {
    position: relative;
    z-index: 2;

    width: 22px;
    height: 22px;

    display: block;
}


/* =========================================================
   ERROR MESSAGE
========================================================= */

.login-message {
    position: relative;
    z-index: 2;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 16px;
    padding: 13px 15px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}


/* =========================================================
   FORM
========================================================= */

.login-form {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.login-field input {
    width: 100%;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 16px;
    padding: 15px 16px;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;

    text-align: center;
}

.login-field input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.login-field input:-webkit-autofill,
.login-field input:-webkit-autofill:hover,
.login-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0f172a;
    box-shadow: 0 0 0 1000px #f8fafc inset;
    border: 1px solid #cbd5e1;
}


/* =========================================================
   BUTTON
========================================================= */

.login-btn {
    border: none;
    border-radius: 16px;
    padding: 15px 18px;
    margin-top: 4px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.30);
    transition: 0.2s ease;
}

.login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.36), transparent);
    transform: skewX(-22deg);
    transition: 0.5s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.42);
}

.login-btn:hover::before {
    left: 130%;
}

.login-btn span {
    position: relative;
    z-index: 2;
}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.login-footer span {
    height: 1px;
    flex: 1;
    background: #e2e8f0;
}

.login-footer p {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 560px) {
    body {
        overflow-y: auto;
    }

    .login-body {
        padding: 18px;
    }

    .login-panel {
        padding: 30px 24px;
        border-radius: 26px;
    }

    .login-heading h1 {
        font-size: 30px;
    }

    .login-wordmark {
        width: min(290px, 95%);
    }
}

@media (max-width: 390px) {
    .login-panel {
        padding: 28px 20px;
    }

    .login-heading h1 {
        font-size: 28px;
    }
}