/* =====================================================
   GLOBAL
===================================================== */

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

body{
    font-family:Segoe UI, Arial, sans-serif;
    color:#0f172a;
}

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

.auth-page{
    min-height:100vh;

    background:url("../images/8924384_4027795.svg");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    position:relative;
    overflow:hidden;
}

.overlay{
    position:absolute;
    inset:0;

    background:rgba(255, 255, 255, 0.63);
}

/* =====================================================
   LEFT CONTENT
===================================================== */

.brand-box{
    position:absolute;

    top:120px;
    left:70px;

    z-index:10;

    max-width:520px;
}

.brand-box h1{
    font-size:48px;
    font-weight:700;

    margin-bottom:12px;
}

.brand-box p{
    font-size:22px;
    color:#475569;

    margin-bottom:40px;
}

.features{
    margin-top:60px;
}

.feature{
    display:flex;
    align-items:center;

    font-size:22px;

    margin-bottom:18px;

    color:#0f172a;
}

.feature i{
    width:35px;

    color:#2563eb;
}

/* =====================================================
   STATS
===================================================== */

.stats-row{
    display:flex;

    gap:50px;

    margin-top:50px;
}

.stat-box h4{
    font-size:36px;
    font-weight:700;

    color:#0f172a;
}

.stat-box span{
    color:#64748b;
    font-size:15px;
}

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

.login-card{
    position:absolute;

    top:50%;
    right:140px;

    transform:translateY(-50%);

    width:460px;

    background:rgba(
        255,
        255,
        255,
        0.88
    );
    border:1px solid rgba(255,255,255,0.5);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);

    padding:50px;

    border-radius:28px;

    z-index:10;

    box-shadow:
        0 20px 50px rgba(
            0,
            0,
            0,
            0.10
        );
}

.login-card h2{
    text-align:center;

    font-size:28px;

    margin-bottom:10px;
}

.login-subtitle{
    text-align:center;

    color:#64748b;

    margin-bottom:30px;
}

.login-card input{
    width:100%;

    height:55px;

    padding:0 16px;

    margin-bottom:18px;

    border:1px solid #dbe2ea;

    border-radius:10px;

    font-size:15px;
}

.login-card input:focus{
    outline:none;

    border-color:#2563eb;
}

.forgot-row{
    text-align:right;

    margin-bottom:20px;
}

.forgot-row a{
    text-decoration:none;

    color:#2563eb;

    font-size:14px;
}

.forgot-row a:hover{
    text-decoration:underline;
}

.login-card button{
    width:100%;

    height:55px;

    border:none;

    border-radius:10px;

    background:#2563eb;

    color:white;

    font-size:18px;
    font-weight:600;

    cursor:pointer;
}

.login-card button:hover{
    background:#1e40af;
}

.logo-row{
    display:flex;
    align-items:center;
    gap:16px;
}

.logo-icon{
    width:58px;
    height:58px;

    border-radius:14px;

    background:#2563eb;
    color:white;

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

    font-size:24px;
    font-weight:700;
}

/* =====================================================
   OTP PAGE
===================================================== */

.center-box{
    min-height:100vh;

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

.otp-card{
    position:absolute;

    top:50%;
    right:140px;

    transform:translateY(-50%);

    width:460px;

    background:rgba(
        255,
        255,
        255,
        0.88
    );

    border:1px solid rgba(
        255,
        255,
        255,
        0.5
    );

    backdrop-filter:blur(12px);

    padding:50px;

    border-radius:28px;

    box-shadow:
        0 20px 50px rgba(
            0,
            0,
            0,
            .10
        );

    z-index:10;
}

.otp-card h2{
    text-align:center;
    margin-bottom:10px;
}

.otp-card input{
    width:100%;
    height:55px;

    text-align:center;

    font-size:24px;
    letter-spacing:8px;

    margin-bottom:20px;

    border:1px solid #dbe2ea;
    border-radius:10px;

    padding:0 15px;
}  

.otp-card button{
    width:100%;
    height:55px;

    border:none;
    border-radius:10px;

    background:#2563eb;
    color:white;

    font-size:18px;
    font-weight:600;
}

.otp-card button:hover{
    background:#1e40af;
}

/* =====================================================
   DASHBOARD
===================================================== */

.portal-header{
    background:white;

    padding:20px 40px;

    box-shadow:
        0 2px 15px rgba(
            0,
            0,
            0,
            .05
        );
}

.portal-card{
    background:white;
    transition:all .25s ease;
    border-radius:24px;

    padding:25px;
    min-height:260px;
    text-align:center;

    transition:.3s;

    box-shadow:
        0 10px 25px rgba(
            0,
            0,
            0,
            .06
        );
}

.portal-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(0,0,0,.08);
}

.portal-card h4{
    margin-bottom:20px;
}
.momentum-card{
    border-top:4px solid #2563eb;
}
.crude-card{
    border-top:4px solid #7c3aed;
}
.nifty-card{
    border-top:4px solid #ea580c;
}

.platform-subtitle{
    font-size:18px;
    font-weight:700;
    margin-bottom:10px;
}

.momentum-card .platform-subtitle{
    color:#2563eb;
}

.crude-card .platform-subtitle{
    color:#7c3aed;
}

.nifty-card .platform-subtitle{
    color:#ea580c;
}

.platform-icon{
    width:72px;
    height:72px;

    border-radius:50%;

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

    margin:0 auto 20px;

    font-size:30px;
}

.blue{
    background:#dbeafe;
    color:#2563eb;
}

.purple{
    background:#ede9fe;
    color:#7c3aed;
}

.orange{
    background:#ffedd5;
    color:#ea580c;
}

.dashboard-date{
    color:#94a3b8;
    font-size:14px;
}

.positive{
    color:#16a34a;
    font-weight:600;
}

.negative{
    color:#dc2626;
    font-weight:600;
}

.momentum-card h4{
    color:#1d4ed8;
}

.crude-card h4{
    color:#5b21b6;
}

.nifty-card h4{
    color:#c2410c;
}

.momentum-card p{
    color:#64748b;
}

.crude-card p{
    color:#64748b;
}

.nifty-card p{
    color:#64748b;
}

.market-overview-card{
    background:white;

    border-radius:24px;

    padding:32px;

    margin-top:40px;

    box-shadow:
        0 10px 25px rgba(0,0,0,.06);
}

.market-header{
    font-size:30px;
    font-weight:700;

    margin-bottom:25px;

    border-left:4px solid #2563eb;

    padding-left:15px;
}

.market-grid{
    display:grid;

    grid-template-columns:
        1.3fr
        1fr
        1fr
        1fr
        1fr;

    gap:20px;

    align-items:center;
}

.market-item{
    text-align:center;
}

.market-item h3{
    margin:8px 0;
    font-weight:700;
}

.time-box{
    display:flex;
    align-items:center;
    gap:20px;
}

.market-icon{
    width:64px;
    height:64px;

    border-radius:50%;

    background:#dbeafe;
    color:#2563eb;

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

    font-size:28px;

    flex-shrink:0;
}

.portal-header{
    height:64px;
}

.portal-logo{
    display:flex;
    align-items:center;
    gap:14px;
}
.nav-logo{
    width:40px;
    height:40px;

    border-radius:10px;

    background:linear-gradient(
        135deg,
        #3b82f6,
        #2563eb
    );

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

    color:white;
    font-weight:700;
    font-size:18px;

    box-shadow:
        0 4px 12px rgba(37,99,235,.35);
}
.overview-title{
    font-size:18px;
    font-weight:700;
    color:#0f172a;

    padding-left:14px;
    border-left:4px solid #2563eb;
}
.market-status{
    display:inline-flex;
    align-items:center;
    gap:8px;

    background:#dcfce7;
    color:#15803d;

    padding:8px 14px;

    border-radius:999px;

    font-size:13px;
    font-weight:600;
}

.market-status::before{
    content:"";

    width:8px;
    height:8px;

    border-radius:50%;

    background:#16a34a;

    animation:livePulse 1.5s infinite;
}

@keyframes livePulse{

    0%{
        opacity:1;
        transform:scale(1);
    }

    50%{
        opacity:.3;
        transform:scale(1.5);
    }

    100%{
        opacity:1;
        transform:scale(1);
    }
}
.portal-user{
    display:flex;
    align-items:center;
    gap:18px;
}

.notification-icon{
    font-size:18px;
    color:white;
}
.platform-btn{
    display:inline-block;
    padding:10px 22px;
    border-radius:8px;
    color:white;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    margin-top:12px;
}

.momentum-btn{
    background:#2563eb;
    color:white;

    border:none;

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

    transition:.25s;
}

.momentum-btn:hover{
    transform:translateY(-2px);

    box-shadow:
        0 10px 24px rgba(37,99,235,.45);
}

.crude-btn{
    background:#7c3aed;
    color:white;

    border:none;

    box-shadow:
        0 6px 16px rgba(124,58,237,.35);

    transition:.25s;
}

.crude-btn:hover{
    transform:translateY(-2px);

    box-shadow:
        0 10px 24px rgba(124,58,237,.45);
}

.nifty-btn{
    background:#ea580c;
    color:white;

    border:none;

    box-shadow:
        0 6px 16px rgba(234,88,12,.35);

    transition:.25s;
}

.nifty-btn:hover{
    transform:translateY(-2px);

    box-shadow:
        0 10px 24px rgba(234,88,12,.45);
}

.platform-btn:hover{
    opacity:.9;
    color:white;
}

.portal-user{
    display:flex;
    align-items:center;
    gap:20px;
}

.notification-icon{
    color:white;
    cursor:pointer;
    font-size:15px;
}

.user-avatar{
    width:32px;
    height:32px;

    border-radius:50%;

    background:#2563eb;
    color:white;

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

    font-size:14px;
    font-weight:700;
}




/* =====================================
   FLASH MESSAGES
===================================== */

.custom-alert{
    padding:14px 16px;
    border-radius:10px;
    margin-bottom:20px;
    font-size:15px;
    font-weight:500;
}

.custom-alert.success{
    background:#dcfce7;
    color:#166534;
    border:1px solid #86efac;
}

.custom-alert.danger{
    background:#fee2e2;
    color:#991b1b;
    border:1px solid #fca5a5;
}

.custom-alert.warning{
    background:#fef3c7;
    color:#92400e;
    border:1px solid #fcd34d;
}

.custom-alert.info{
    background:#dbeafe;
    color:#1d4ed8;
    border:1px solid #93c5fd;
}

/* =====================================
   TOAST
===================================== */

#toast-container{
    position:absolute;
    top:20px;
    left:50%;
    transform:translateX(-50%);
    z-index:999;
}

.toast-message{
    min-width:320px;

    padding:14px 20px;

    border-radius:12px;

    color:white;
    font-weight:600;

    margin-bottom:10px;

    box-shadow:
        0 10px 25px rgba(0,0,0,.15);

    animation:
        toastIn .35s ease;
}

.toast-message.success{
    background:#16a34a;
}

.toast-message.danger{
    background:#dc2626;
}

.toast-message.warning{
    background:#d97706;
}

.toast-message.info{
    background:#2563eb;
}

@keyframes toastIn{
    from{
        opacity:0;
        transform:translateY(-15px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}
.back-login{
    text-align:center;
    margin-top:20px;
}

.back-login a{
    color:#2563eb;
    text-decoration:none;
    font-size:14px;
}

.back-login a:hover{
    text-decoration:underline;
}

.dashboard-page{
    background:#f8fafc;
    min-height:100vh;
}
.portal-header{
    height:70px;
    background:#071b4a;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 32px;

    color:white;

    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.welcome-section{
    max-width:1200px;
    margin:30px auto;
    padding:0 20px;
}

.welcome-section h1{
    font-size:42px;
    margin-bottom:10px;
}

.welcome-section p{
    color:#64748b;
}
.portal-user{
    display:flex;
    align-items:center;
    gap:24px;
    color:white;
}

.user-avatar{
    width:34px;
    height:34px;

    border-radius:50%;

    background:#2563eb;

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

    font-weight:700;
}
.logout-btn{
    background:white;
    color:#071b4a;
    padding:8px 16px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
}

.portal-logo{
    display:flex;
    align-items:center;
    gap:12px;
    font-weight:700;
    font-size:22px;
}
.nav-logo-badge{
    width:42px;
    height:42px;

    border-radius:10px;

    background:linear-gradient(
        135deg,
        #3b82f6,
        #2563eb
    );

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

    color:white;

    font-size:20px;
    font-weight:700;

    box-shadow:
        0 4px 12px rgba(
            37,
            99,
            235,
            .35
        );
}

.nav-logo-text{
    color:white;
    font-size:18px;
    font-weight:700;
    letter-spacing:-0.4px;
}
.small-logo{
    width:40px;
    height:40px;
    font-size:16px;
}

.container{
    max-width:1280px;
}

/* =====================================
   USER DROPDOWN
===================================== */

.portal-user{
    display:flex;
    align-items:center;
    gap:20px;
    color:white;
}

.notification-icon{
    color:white;
    font-size:18px;
    cursor:pointer;
}

.user-dropdown{
    position:relative;

    display:flex;
    align-items:center;

    gap:10px;

    cursor:pointer;
}

.user-avatar{
    width:34px;
    height:34px;

    border-radius:50%;

    background:#2563eb;
    color:white;

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

    font-size:14px;
    font-weight:700;
}

.dropdown-menu-custom{
    position:absolute;

    top:100%;
    right:0;

    margin-top:12px;

    min-width:180px;

    background:white;

    border-radius:12px;

    overflow:hidden;

    display:none;

    box-shadow:
        0 10px 30px rgba(
            0,
            0,
            0,
            .15
        );

    z-index:99999;
}

.dropdown-menu-custom.show{
    display:block;
}

.dropdown-menu-custom a{
    display:flex;
    align-items:center;

    gap:12px;

    padding:14px 18px;

    text-decoration:none;

    color:#ef4444;

    font-weight:600;
}

.dropdown-menu-custom a:hover{
    background:#f8fafc;
}

.market-time{
    min-width:220px;

    display:flex;
    flex-direction:column;
    justify-content:center;
}

.market-date{
    margin-top:8px;

    font-size:15px;
    color:#94a3b8;
}

.market-clock{
    font-size:22px;
    font-weight:700;
    color:#0f172a;
    white-space:nowrap;
}

.market-zone{
    font-size:14px;
    color:#64748b;
    margin-top:4px;
}

/* =====================================
   FOOTER
===================================== */
.portal-footer{
    max-width:1200px;
    margin:35px auto 20px;
    padding:0 20px;
}

.footer-content{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;

    align-items:center;

    color:#64748b;
    font-size:14px;
}

.footer-left{
    text-align:left;
}

.footer-center{
    text-align:center;
}

.footer-right{
    text-align:right;
}
/* =====================================================
   MOBILE
===================================================== */

@media (max-width:768px){

    .brand-box{
        position:relative;

        left:auto;
        top:auto;

        padding:30px 20px;

        text-align:center;

        max-width:100%;
    }

    .brand-box h1{
        font-size:42px;
    }

    .brand-box p{
        font-size:18px;
    }

    .features{
        display:none;
    }

    .stats-row{
        display:none;
    }

    .login-card{
        position:relative;

        top:auto;
        right:auto;

        transform:none;

        width:90%;
        max-width:400px;

        margin:20px auto 40px;

        padding:30px;
    }

    .auth-page{
        background-size:cover;
        background-position:center;
    }
    .footer-content{
    flex-direction:column;
    gap:10px;
    text-align:center;
    }
}
