/* RESET */

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

body{
    font-family:'Inter',sans-serif;
    background:#040510;
    min-height:100vh;
    overflow:hidden;
    position:relative;
}

/* BACKGROUND */

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

.orb-1{
    width:400px;
    height:400px;

    background:#00d9ff25;

    left:-120px;
    bottom:-120px;
}

.orb-2{
    width:350px;
    height:350px;

    background:#9b5cff30;

    top:-120px;
    right:-120px;
}

/* NAVBAR */

.navbar{
    position:absolute;
    top:25px;
    left:30px;
    z-index:10;
}

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

.logo-group{
    display:flex;
    gap:4px;
}

.logo-group span{

    width:34px;
    height:34px;

    border-radius:8px;

    background:
    linear-gradient(
        135deg,
        #b16dff,
        #7d7cff
    );

    color:white;

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

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

.brand h2{
    color:#a96dff;
    font-size:28px;
}

/* LOGIN CARD */

.login-card{

    width:430px;

    position:absolute;

    top:50%;
    left:50%;

    transform:translate(-50%,-50%);

    background:
    rgba(15,18,35,.75);

    backdrop-filter:blur(25px);

    border:1px solid
    rgba(255,255,255,.05);

    border-radius:28px;

    padding:45px;

    box-shadow:
    0 20px 60px rgba(0,0,0,.4);
}

.login-card::before{

    content:"";

    position:absolute;

    width:260px;
    height:260px;

    left:50%;
    bottom:-140px;

    transform:translateX(-50%);

    background:
    radial-gradient(
        circle,
        rgba(255,191,0,.5),
        transparent 70%
    );

    filter:blur(30px);

    pointer-events:none;
}

.login-card h1{
    color:white;
    text-align:center;
    margin-bottom:10px;
}

.login-card p{
    color:#9fa7ba;
    text-align:center;
    margin-bottom:35px;
}

/* INPUTS */

.input-group{
    margin-bottom:22px;
}

.input-group label{
    display:block;
    color:#b6bdd0;
    margin-bottom:8px;
    font-size:14px;
}

.label-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.label-row a{
    color:#7e879c;
    text-decoration:none;
    font-size:14px;
}

.input-box{

    height:58px;

    background:
    rgba(255,255,255,.05);

    border:
    1px solid rgba(255,255,255,.08);

    border-radius:16px;

    display:flex;
    align-items:center;

    padding:0 18px;

    transition:.3s;
}

.input-box:focus-within{

    border-color:#9b5cff;

    box-shadow:
    0 0 25px
    rgba(155,92,255,.25);
}

.input-box i{
    color:#8d96aa;
}

.input-box input{

    flex:1;

    border:none;
    outline:none;

    background:none;

    color:white;

    padding:0 12px;

    font-size:15px;
}

.input-box input::placeholder{
    color:#747d91;
}

#togglePassword{
    cursor:pointer;
}

/* REMEMBER */

.remember{

    display:flex;
    align-items:center;

    gap:10px;

    margin-bottom:25px;

    color:#a3abc0;
    font-size:14px;
}

.remember input{
    accent-color:#9b5cff;
}

/* LOGIN BUTTON */

.login-btn{

    width:100%;
    height:60px;

    border:none;
    border-radius:18px;

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

    cursor:pointer;

    background:
    linear-gradient(
        135deg,
        #a85cff,
        #6f50ff
    );

    transition:.35s;
}

.login-btn:hover{

    transform:translateY(-3px);

    box-shadow:
    0 0 40px
    rgba(155,92,255,.45);
}

/* SIGNUP */

.signup-link{

    margin-top:25px;

    text-align:center;

    color:#8d95ab;

    font-size:14px;
}

.signup-link a{

    color:#a86cff;

    text-decoration:none;

    font-weight:600;
}

/* HOME BUTTON */

.home-btn{

    width:100%;
    height:58px;

    margin-top:25px;

    border-radius:16px;

    border:2px solid #f4c331;

    background:
    rgba(0,0,0,.2);

    color:white;

    font-weight:700;

    cursor:pointer;

    transition:.35s;
}

.home-btn i{
    margin-right:10px;
}

.home-btn:hover{

    background:#f4c331;

    color:black;

    box-shadow:
    0 0 35px
    rgba(244,195,49,.5);
}

/* FOOTER */

footer{

    position:absolute;

    bottom:35px;

    width:100%;

    text-align:center;

    color:#70798d;
}

footer p{
    margin-bottom:6px;
}

footer small{
    color:#00ff99;
}

/* RESPONSIVE */

@media(max-width:600px){

    .login-card{

        width:92%;

        padding:30px;
    }

    .brand h2{
        font-size:22px;
    }

}
#toastContainer{

    position:fixed;

    top:25px;
    right:25px;

    z-index:9999;

    display:flex;
    flex-direction:column;

    gap:12px;

}

.toast{

    min-width:320px;

    padding:16px 20px;

    border-radius:16px;

    color:white;

    font-weight:600;

    backdrop-filter:blur(20px);

    animation:
    slideIn .3s ease;

    box-shadow:
    0 15px 40px rgba(0,0,0,.35);

}

.toast.success{

    background:
    linear-gradient(
        135deg,
        #16a34a,
        #22c55e
    );

}

.toast.error{

    background:
    linear-gradient(
        135deg,
        #dc2626,
        #ef4444
    );

}

.toast.info{

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

}

@keyframes slideIn{

    from{

        opacity:0;

        transform:
        translateX(50px);

    }

    to{

        opacity:1;

        transform:
        translateX(0);

    }

}
.field-error{

    display:block;

    min-height:18px;

    margin-top:8px;

    color:#ef4444;

    font-size:13px;

    font-weight:600;

    padding-left:4px;

}

.input-error{

    border-color:#ef4444 !important;

    box-shadow:
    0 0 0 3px
    rgba(239,68,68,.15);

}
.success-modal{

    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(10px);
    z-index:9999;

}

.success-modal.active{
    display:flex;
}

.success-box{

    width:420px;
    padding:40px;
    text-align:center;
    border-radius:28px;
    background:rgba(18,20,35,.95);
    border:1px solid rgba(255,255,255,.08);

}

.success-icon{

    width:90px;
    height:90px;
    margin:auto;
    margin-bottom:20px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:42px;
    font-weight:900;
    color:white;
    background:linear-gradient(135deg,#16a34a,#22c55e);

}
.label-row a,
.signup-link a{

    position:relative;

    color:#a855f7;

    font-weight:800;

    text-decoration:none;

    transition:.25s ease;

}

.label-row a::after,
.signup-link a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-4px;

    width:0;
    height:2px;

    border-radius:999px;

    background:
    linear-gradient(
        90deg,
        #a855f7,
        #22d3ee
    );

    transition:.25s ease;

}

.label-row a:hover,
.signup-link a:hover{

    color:#22d3ee;

    text-shadow:
    0 0 16px
    rgba(34,211,238,.55);

}

.label-row a:hover::after,
.signup-link a:hover::after{

    width:100%;

}

.label-row a:active,
.signup-link a:active{

    transform:
    scale(.94);

}
.label-row a,
.signup-link a{

    display:inline-block;

}
/* LOGIN RESPONSIVE FIX */

@media(max-width:768px){

    body{
        min-height:100vh;
        overflow-y:auto !important;
        padding:18px 14px;
    }

    .auth-container,
    .login-container{
        width:100%;
        min-height:auto;
        display:flex;
        justify-content:center;
        align-items:flex-start;
    }

    .login-card{
        width:100%;
        max-width:390px;
        padding:24px 22px 22px;
        border-radius:24px;
        margin:0 auto;
    }

    .navbar{
        margin-bottom:18px;
    }

    .brand-name{
        font-size:20px;
    }

    .login-card h1{
        font-size:30px;
        line-height:1.1;
        margin-bottom:10px;
    }

    .login-card > p{
        font-size:14px;
        line-height:1.45;
        margin-bottom:24px;
    }

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

    .input-box{
        height:52px;
        border-radius:14px;
    }

    .login-btn{
        height:54px;
        border-radius:16px;
        margin-top:12px;
    }

    .back-home-btn{
        height:52px;
        border-radius:16px;
        margin-top:14px;
    }

    footer,
    .footer{
        position:static !important;
        margin-top:14px;
        font-size:12px;
        text-align:center;
    }

}

/* iPhone 6/7/8 Plus, small height fix */
@media(max-width:430px) and (max-height:760px){

    body{
        padding:10px 12px;
    }

    .login-card{
        padding:18px 18px 16px;
        max-width:370px;
    }

    .navbar{
        margin-bottom:12px;
    }

    .logo-box{
        width:32px;
        height:32px;
        font-size:13px;
    }

    .brand-name{
        font-size:18px;
    }

    .login-card h1{
        font-size:27px;
        margin-bottom:8px;
    }

    .login-card > p{
        font-size:13px;
        margin-bottom:16px;
    }

    .form-group{
        margin-bottom:13px;
    }

    .input-box{
        height:48px;
    }

    .remember-row{
        margin:10px 0;
        font-size:13px;
    }

    .login-btn,
    .back-home-btn{
        height:48px;
    }

    .create-text{
        margin:14px 0 8px;
        font-size:13px;
    }

    footer,
    .footer{
        margin-top:8px;
        font-size:11px;
    }

}

/* very small phones */
@media(max-width:375px){

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

    .login-card h1{
        font-size:25px;
    }

    .brand-name{
        font-size:17px;
    }

    .input-box{
        height:46px;
    }

}
/* =========================
   LOGIN MOBILE LIKE IMAGE 2
========================= */

@media(max-width:768px){

    html,
    body{
        width:100%;
        min-height:100vh;
        overflow-x:hidden !important;
        overflow-y:auto !important;
        background:#070816 !important;
    }

    body{
        padding:20px 12px 24px !important;
    }

    .login-card{
        position:relative !important;
        top:auto !important;
        left:auto !important;
        transform:none !important;

        width:100% !important;
        max-width:390px !important;

        margin:90px auto 0 !important;
        padding:28px 28px 34px !important;

        border-radius:20px !important;

        background:
        rgba(18,20,35,.82) !important;

        border:1px solid
        rgba(255,255,255,.08) !important;

        box-shadow:
        0 25px 80px rgba(0,0,0,.45) !important;

        overflow:visible !important;
    }

    .navbar{
        position:fixed !important;
        top:22px !important;
        left:18px !important;

        width:auto !important;

        display:flex !important;
        align-items:center !important;
        justify-content:flex-start !important;

        gap:10px !important;

        margin:0 !important;

        z-index:20 !important;
    }

    .logo{
        display:flex !important;
        gap:5px !important;
        flex-shrink:0 !important;
    }

    .logo-box{
        width:28px !important;
        height:28px !important;
        border-radius:7px !important;
        font-size:12px !important;
    }

    .brand-name{
        font-size:18px !important;
        font-weight:800 !important;
        white-space:nowrap !important;
    }

    .login-card h1{
        font-size:22px !important;
        line-height:1.15 !important;
        margin:0 0 10px !important;
        text-align:center !important;
    }

    .login-card > p{
        font-size:15px !important;
        line-height:1.45 !important;
        margin:0 0 22px !important;
        text-align:center !important;
    }

    .form-group{
        margin-bottom:16px !important;
    }

    .label-row{
        display:flex !important;
        justify-content:space-between !important;
        align-items:center !important;
        margin-bottom:8px !important;
    }

    .label-row label{
        font-size:14px !important;
    }

    .label-row a{
        font-size:14px !important;
        white-space:nowrap !important;
    }

    .input-box{
        width:100% !important;
        height:44px !important;

        border-radius:11px !important;

        background:#e8f0fe !important;

        overflow:hidden !important;
    }

    .input-box i{
        color:#64748b !important;
    }

    .input-box input{
        color:#111827 !important;
        font-size:14px !important;
    }

    .input-box input::placeholder{
        color:#64748b !important;
    }

    .remember-row{
        margin:8px 0 18px !important;
        font-size:14px !important;
    }

    .login-btn{
        width:100% !important;
        height:45px !important;
        border-radius:12px !important;
        font-size:15px !important;
        margin:0 !important;
    }

    .create-text{
        margin:18px 0 22px !important;
        font-size:13px !important;
        text-align:center !important;
    }

    .back-home-btn{
        width:78% !important;
        height:48px !important;

        margin:0 auto !important;

        border-radius:10px !important;

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

        font-size:14px !important;
    }

    footer{
        position:relative !important;
        bottom:auto !important;

        width:100% !important;

        margin:80px auto 0 !important;

        text-align:center !important;

        font-size:12px !important;
    }

    footer p{
        margin:0 0 10px !important;
    }

    footer small{
        font-size:12px !important;
    }

}

/* iPhone 6/7/8 */
@media(max-width:380px){

    .login-card{
        max-width:365px !important;
        padding:24px 24px 30px !important;
    }

    .brand-name{
        font-size:17px !important;
    }

    .login-card h1{
        font-size:21px !important;
    }

    .login-card > p{
        font-size:14px !important;
    }

    .back-home-btn{
        width:84% !important;
    }

}
@media(max-width:768px){

    html,
    body{

        overflow:hidden !important;

        height:100vh !important;

    }

}
.language-switch{
    position:fixed;
    top:20px;
    right:20px;
    z-index:9999;
    display:flex;
    gap:8px;
}

.language-switch button{
    border:none;
    padding:8px 14px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
    background:rgba(255,255,255,.1);
    color:#fff;
    backdrop-filter:blur(10px);
    transition:.3s;
}

.language-switch button:hover{
    background:#7c3aed;
}