﻿
/* =====================================================
           RESET
        ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #020716;
    --bg2: #06122c;
    --cyan: #18d8ff;
    --blue: #167dff;
    --purple: #874dff;
    --green: #19e6a2;
    --red: #ff4d73;
    --text: #ffffff;
    --text2: #b6c5e3;
    --muted: #7184aa;
    --glass: rgba(8, 22, 52, .68);
    --border: rgba(75, 164, 255, .22);
}

html,
body,
form {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

input,
button {
    font-family: inherit;
}

a {
    text-decoration: none;
}


/* =====================================================
           FULL SCREEN
        ===================================================== */

.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 20px 80px;
    overflow: hidden;
    background: radial-gradient( circle at 15% 20%, rgba(0, 123, 255, .15), transparent 30% ), radial-gradient( circle at 85% 75%, rgba(119, 53, 255, .13), transparent 30% ), #020716;
}


/* =====================================================
           FULL TRADING CANVAS
        ===================================================== */

#tradingCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}


/* =====================================================
           TRADING GRID
        ===================================================== */

.chart-grid {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: linear-gradient( rgba(61, 125, 211, .10) 1px, transparent 1px ), linear-gradient( 90deg, rgba(61, 125, 211, .10) 1px, transparent 1px );
    background-size: 65px 65px;
}


/* =====================================================
           BACKGROUND DARK OVERLAY
        ===================================================== */

.background-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient( circle at center, rgba(2, 7, 22, .05), rgba(2, 7, 22, .40) );
}


/* =====================================================
           GLOW
        ===================================================== */

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 2;
    animation: glowMove 10s ease-in-out infinite alternate;
}

.glow1 {
    width: 400px;
    height: 400px;
    left: -180px;
    top: -100px;
    background: rgba(0, 140, 255, .25);
}

.glow2 {
    width: 420px;
    height: 420px;
    right: -170px;
    bottom: -150px;
    background: rgba(121, 54, 255, .22);
    animation-delay: 2s;
}

.glow3 {
    width: 280px;
    height: 280px;
    left: 45%;
    bottom: -180px;
    background: rgba(0, 223, 255, .13);
    animation-delay: 4s;
}

@keyframes glowMove {

    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, -30px) scale(1.15);
    }
}


/* =====================================================
           FLOATING MARKET LABELS
        ===================================================== */

.market-label {
    position: fixed;
    z-index: 3;
    padding: 9px 13px;
    border-radius: 10px;
    background: rgba(6, 20, 45, .45);
    border: 1px solid rgba(85, 160, 255, .11);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #8ca0c5;
    font-size: 12px;
    pointer-events: none;
    animation: floatingLabel 5s ease-in-out infinite alternate;
}

    .market-label strong {
        color: #ffffff;
        margin-left: 7px;
    }

    .market-label .up {
        color: var(--green);
        margin-left: 7px;
    }

    .market-label .down {
        color: var(--red);
        margin-left: 7px;
    }

.label1 {
    top: 12%;
    left: 5%;
}

.label2 {
    top: 27%;
    right: 5%;
    animation-delay: 1s;
}

.label3 {
    bottom: 17%;
    left: 7%;
    animation-delay: 2s;
}

.label4 {
    bottom: 12%;
    right: 7%;
    animation-delay: 3s;
}

@keyframes floatingLabel {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-8px);
    }
}


/* =====================================================
           LOGIN WRAPPER
        ===================================================== */

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 490px;
    animation: loginLoad .7s ease;
}

@keyframes loginLoad {

    from {
        opacity: 0;
        transform: translateY(25px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =====================================================
           LOGO / BRAND
        ===================================================== */

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-bottom: 25px;
}

.brand-icon {
    position: relative;
    width: 20%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    font-size: 28px;
    color: #ffffff;
}

    .brand-icon::after {
        content: "";
        position: absolute;
        width: 18px;
        height: 80px;
        top: -15px;
        left: -45px;
        transform: rotate(25deg);
        background: rgba(255, 255, 255, .22);
        animation: brandShine 4s ease-in-out infinite;
    }

@keyframes brandShine {

    0%, 65% {
        left: -45px;
    }

    100% {
        left: 80px;
    }
}

.brand-name {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.7px;
    color: #ffffff;
}

    .brand-name span {
        color: var(--cyan);
    }


/* =====================================================
           GLASS LOGIN CARD
        ===================================================== */

.login-card {
    position: relative;
    width: 100%;
    padding: 38px 38px 34px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient( 145deg, rgba(14, 35, 75, .73), rgba(4, 15, 39, .78) );
    border: 1px solid rgba(77, 166, 255, .25);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .50), 0 0 60px rgba(0, 125, 255, .07), inset 0 1px rgba(255, 255, 255, .055);
}

    .login-card::before {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        top: -130px;
        right: -100px;
        border-radius: 50%;
        background: rgba(26, 142, 255, .16);
        filter: blur(30px);
        pointer-events: none;
    }

    .login-card::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        bottom: -150px;
        left: -100px;
        border-radius: 50%;
        background: rgba(126, 65, 255, .12);
        filter: blur(35px);
        pointer-events: none;
    }


/* =====================================================
           TOP LIVE STATUS
        ===================================================== */

.live-status {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #63e5ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: livePulse 1.4s infinite;
}

@keyframes livePulse {

    0% {
        opacity: .5;
        transform: scale(.75);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }

    100% {
        opacity: .5;
        transform: scale(.75);
    }
}


/* =====================================================
           LOGIN HEADING
        ===================================================== */

.login-heading {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 29px;
}

    .login-heading h1 {
        font-size: 35px;
        line-height: 1.2;
        font-weight: 800;
        letter-spacing: -1px;
        color: #ffffff;
    }

        .login-heading h1 span {
            background: linear-gradient( 90deg, #1ddcff, #7790ff );
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

    .login-heading p {
        margin-top: 10px;
        color: var(--muted);
        font-size: 15px;
        line-height: 1.6;
    }


/* =====================================================
           MESSAGE
        ===================================================== */

.message {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    margin-bottom: 16px;
    text-align: center;
    color: #ff738f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

    .message:empty {
        display: none;
    }


/* =====================================================
           FORM GROUP
        ===================================================== */

.form-group {
    position: relative;
    z-index: 2;
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 9px;
    color: #c8d5ec;
    font-size: 14px;
    font-weight: 600;
}


/* =====================================================
           INPUT
        ===================================================== */

.input-area {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 17px;
    z-index: 3;
    color: #7187ad;
    font-size: 22px;
    pointer-events: none;
    transition: .25s ease;
}

.form-input {
    width: 100%;
    height: 58px;
    padding: 0 50px;
    border-radius: 14px;
    border: 1px solid rgba(91, 165, 255, .18);
    outline: none;
    background: rgba(4, 17, 43, .58);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: .25s ease;
    box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

    .form-input::placeholder {
        color: #566b91;
    }

    .form-input:hover {
        border-color: rgba(38, 185, 255, .35);
    }

    .form-input:focus {
        border-color: rgba(25, 217, 255, .72);
        background: rgba(7, 27, 62, .78);
        box-shadow: 0 0 0 4px rgba(25, 217, 255, .055), 0 0 28px rgba(22, 140, 255, .10);
    }

.input-area:focus-within .input-icon {
    color: var(--cyan);
}


/* =====================================================
           PASSWORD EYE
        ===================================================== */

.password-eye {
    position: absolute;
    right: 14px;
    z-index: 4;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    outline: 0;
    background: transparent;
    color: #7185aa;
    font-size: 21px;
    cursor: pointer;
    transition: .2s ease;
}

    .password-eye:hover {
        color: var(--cyan);
    }


/* =====================================================
           FORGOT LINKS
        ===================================================== */

.forgot-area {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 4px 0 24px;
}

    .forgot-area a {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: #65dfff;
        font-size: 13px;
        font-weight: 600;
        transition: .2s ease;
    }

        .forgot-area a:last-child {
            color: #aa8aff;
        }

        .forgot-area a:hover {
            color: #ffffff;
        }


/* =====================================================
           SIGN IN BUTTON
        ===================================================== */

.signin-button {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 58px;
    border: 0;
    outline: 0;
    border-radius: 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    background: linear-gradient( 100deg, #087fff, #2876ff, #7846ff );
    box-shadow: 0 14px 35px rgba(25, 108, 255, .30);
    transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
    -webkit-appearance: none;
    appearance: none;
}

    .signin-button:hover {
        transform: translateY(-2px);
        filter: brightness(1.08);
        box-shadow: 0 17px 42px rgba(34, 115, 255, .43);
    }

    .signin-button:active {
        transform: translateY(0);
    }


/* =====================================================
           DIVIDER
        ===================================================== */

.divider {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 27px 0 22px;
    color: #536788;
    font-size: 12px;
}

    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: linear-gradient( 90deg, transparent, rgba(104, 160, 220, .25) );
    }

    .divider::after {
        background: linear-gradient( 90deg, rgba(104, 160, 220, .25), transparent );
    }


/* =====================================================
           SIGN UP
        ===================================================== */

.signup-area {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #8293b3;
    font-size: 14px;
}

    .signup-area a {
        margin-left: 5px;
        color: var(--cyan);
        font-weight: 700;
        transition: .2s ease;
    }

        .signup-area a:hover {
            color: #ffffff;
        }


/* =====================================================
           SECURITY
        ===================================================== */

.security {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 23px;
    color: #536685;
    font-size: 12px;
}

    .security i {
        color: var(--green);
        font-size: 16px;
    }


/* =====================================================
           HOME
        ===================================================== */

.home-area {
    position: relative;
    z-index: 10;
    margin-top: 21px;
    text-align: center;
}

    .home-area a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 17px;
        border-radius: 30px;
        color: #8ea4c9;
        font-size: 14px;
        font-weight: 600;
        background: rgba(8, 25, 56, .45);
        border: 1px solid rgba(82, 160, 255, .13);
        backdrop-filter: blur(10px);
        transition: .25s ease;
    }

        .home-area a span {
            color: var(--cyan);
            font-size: 18px;
            transition: .25s ease;
        }

        .home-area a:hover {
            color: #ffffff;
            border-color: rgba(27, 216, 255, .35);
            background: rgba(17, 69, 113, .28);
        }

            .home-area a:hover span {
                transform: translateX(-3px);
            }


/* =====================================================
           COPYRIGHT
        ===================================================== */

.copyright {
    position: absolute;
    z-index: 10;
    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 0 15px;
    text-align: center;
    color: #526585;
    font-size: 12px;
}


/* =====================================================
           MOBILE
        ===================================================== */

@media(max-width: 600px) {

    .login-page {
        align-items: flex-start;
        padding: 25px 12px 75px;
    }

    .login-wrapper {
        max-width: 100%;
    }

    .brand {
        margin-bottom: 20px;
    }

    .brand-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
        border-radius: 14px;
    }

    .brand-name {
        font-size: 22px;
    }

    .login-card {
        padding: 30px 22px 28px;
        border-radius: 23px;
    }

    .login-heading h1 {
        font-size: 29px;
    }

    .login-heading p {
        font-size: 14px;
    }

    .form-input {
        height: 56px;
        font-size: 15px;
    }

    .signin-button {
        height: 56px;
    }

    .forgot-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .market-label {
        opacity: .45;
        font-size: 10px;
    }

    .label1 {
        top: 8%;
        left: 2%;
    }

    .label2 {
        top: 30%;
        right: 2%;
    }

    .label3 {
        bottom: 16%;
        left: 2%;
    }

    .label4 {
        display: none;
    }

    .chart-grid {
        background-size: 48px 48px;
    }

    .security {
        font-size: 11px;
    }
}


/* =====================================================
           SMALL MOBILE
        ===================================================== */

@media(max-width: 380px) {

    .login-page {
        padding-left: 8px;
        padding-right: 8px;
    }

    .login-card {
        padding-left: 17px;
        padding-right: 17px;
    }

    .login-heading h1 {
        font-size: 27px;
    }

    .signup-area {
        font-size: 13px;
    }
}
