*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Inter,sans-serif;
}

body{
    min-height:100vh;
    background:
    radial-gradient(circle at top left,#2563eb,#0f172a 40%),
    #020617;

    display:flex;
    justify-content:center;
    align-items:center;

    overflow:hidden;
}

.login-container{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.login-card{

    width:420px;

    background:rgba(15,23,42,0.7);

    border:1px solid rgba(255,255,255,0.1);

    backdrop-filter:blur(20px);

    border-radius:24px;

    padding:50px;

    box-shadow:
    0 8px 32px rgba(0,0,0,0.4);
}

.logo{
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 8px;
    
    font-size: 32px;
    font-weight: 700;

    margin-bottom: 10px;
}

.brand-logo{
    width:min(260px,80vw);
    max-height:76px;
    object-fit:contain;
    display:block;
    filter:drop-shadow(0 18px 30px rgba(37,99,235,0.22));
}

.auth-brand-icon{
    width:86px;
    height:86px;
    display:block;
    object-fit:contain;
    filter:
    drop-shadow(0 18px 30px rgba(37,99,235,0.34))
    drop-shadow(0 8px 22px rgba(217,70,239,0.2));
}

.logo span{
    color: white;
    margin-left: 0;
    margin-bottom: 0;
}

.logo span span{
    color: #2563eb;
    margin-left: 1%;
}

.subtitle{
    display: flex;
    justify-content: center; 
    color:#94a3b8;

    margin-bottom:35px;

    line-height:1.5;
}

.input-group{
    margin-bottom:20px;
}

.input-group label{

    color:#cbd5e1;

    font-size:14px;

    display:block;

    margin-bottom:8px;
}

.input-group input{

    width:100%;

    padding:15px;

    background:rgba(255,255,255,0.05);

    border:1px solid rgba(255,255,255,0.08);

    border-radius:14px;

    color:white;

    font-size:15px;

    outline:none;

    transition:0.3s;
}

.input-group input:focus{

    border-color:#3b82f6;

    box-shadow:
    0 0 0 4px rgba(59,130,246,0.15);
}

.login-btn{

    width:100%;

    padding:15px;

    border:none;

    border-radius:14px;

    background:
    linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );

    color:white;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:0.3s;
}

.login-btn:hover{

    transform:translateY(-2px);

    box-shadow:
    0 10px 25px rgba(37,99,235,0.4);
}

.bottom-text{

    text-align:center;

    margin-top:25px;

    color:#94a3b8;

    font-size:14px;
}

.bottom-text a{

    color:white;

    text-decoration:none;

    font-weight:600;
}

#message{

    margin-top:20px;

    text-align:center;

    color:#f87171;
}

.email-wrapper{

    position:relative;

    width:100%;
}

.email-wrapper input{

    width:100%;
}

#editEmailBtn{

    position:absolute;

    right:14px;

    top:50%;

    transform:translateY(-50%);

    border:none;

    background:none;

    cursor:pointer;

    font-size:18px;

    color:#94a3b8;

    transition:0.2s;
}

#editEmailBtn:hover{

    color:white;
}

.button-row{

    display:flex;

    gap:12px;

    margin-top:20px;
}

.button-row .login-btn{

    flex:1;
}

.secondary-btn{

    background:rgba(255,255,255,0.06);

    color:#cbd5e1;
}

@media (max-width:640px){

    body{
        align-items:flex-start;
        overflow:auto;
    }

    .login-container{
        min-height:100vh;
        padding:18px;
    }

    .login-card{
        width:100%;
        max-width:420px;
        padding:32px 22px;
        border-radius:20px;
    }

    .logo{
        font-size:32px;
        line-height:1.1;
        overflow-wrap:anywhere;
    }

    .subtitle{
        margin-bottom:28px;
    }

    .button-row{
        flex-direction:column;
    }
}

@media (max-width:380px){

    .login-card{
        padding:28px 18px;
    }

    .logo{
        font-size:28px;
    }
}
.powered-by{
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.powered-by img{
    width: 30%;
    height: 30%;
    object-fit: contain;
}

.powered-by .brand-text{
    font-weight: 600;
    color: #111;
}

.powered-by .brand-text span{
    color: #2563eb;
}

.bonus-popup-overlay{
    position:fixed;
    inset:0;
    z-index:5000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(2,6,23,0.72);
    backdrop-filter:blur(10px);
}

.bonus-popup{
    width:min(420px,100%);
    padding:34px;
    border:1px solid rgba(255,255,255,0.1);
    border-radius:24px;
    background:rgba(15,23,42,0.96);
    color:white;
    text-align:center;
    box-shadow:0 24px 80px rgba(0,0,0,0.46);
}

.bonus-popup-badge{
    width:92px;
    height:92px;
    margin:0 auto 20px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#16a34a,#22c55e);
    color:white;
    font-size:30px;
    font-weight:800;
}

.bonus-popup h2{
    font-size:28px;
    margin-bottom:12px;
}

.bonus-popup p{
    color:#cbd5e1;
    line-height:1.55;
    margin-bottom:24px;
}

.bonus-popup button{
    width:100%;
    min-height:50px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,#2563eb,#3b82f6);
    color:white;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}

/* AUTH MOTION LAYER */

body{
    position:relative;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background:
    linear-gradient(115deg,transparent 0%,rgba(255,255,255,0.04) 42%,transparent 64%);
    transform:translateX(-120%);
    animation:authSheen 8s ease-in-out infinite;
}

body::after{
    content:"";
    position:fixed;
    width:420px;
    height:420px;
    right:-140px;
    bottom:-140px;
    border-radius:50%;
    background:rgba(34,197,94,0.16);
    filter:blur(72px);
    pointer-events:none;
    animation:authGlowDrift 13s ease-in-out infinite;
}

.login-container{
    position:relative;
    z-index:1;
}

.login-card{
    position:relative;
    overflow:hidden;
    animation:authCardEnter 0.72s cubic-bezier(.2,.84,.2,1) both;
}

.login-card::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
    radial-gradient(circle at 20% 0%,rgba(59,130,246,0.18),transparent 34%),
    linear-gradient(90deg,transparent,rgba(255,255,255,0.04),transparent);
}

.login-card::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    border-radius:inherit;
    border:1px solid transparent;
    background:linear-gradient(135deg,rgba(59,130,246,0.38),rgba(34,197,94,0.16),transparent) border-box;
    mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
    mask-composite:exclude;
}

.login-card > *{
    position:relative;
    z-index:1;
}

.logo{
    animation:authLogoDrop 0.72s ease both;
}

.logo .brand-logo,
.logo .auth-brand-icon{
    animation:authLogoPulse 2.4s ease-in-out infinite;
}

.subtitle,
.input-group,
.button-row,
.forgot-link,
.bottom-text,
.powered-by,
#message{
    animation:authFadeUp 0.62s ease both;
}

.subtitle{
    animation-delay:0.08s;
}

.input-group:nth-of-type(1){
    animation-delay:0.14s;
}

.input-group:nth-of-type(2){
    animation-delay:0.22s;
}

.input-group:nth-of-type(3){
    animation-delay:0.3s;
}

.button-row,
.login-btn{
    animation-delay:0.32s;
}

.forgot-link{
    animation-delay:0.38s;
}

.bottom-text{
    animation-delay:0.44s;
}

.powered-by{
    animation-delay:0.5s;
}

.input-group input{
    transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.input-group input:focus{
    transform:translateY(-2px);
    background:rgba(255,255,255,0.075);
}

.login-btn{
    position:relative;
    overflow:hidden;
}

.login-btn::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,0.24),transparent);
    transform:translateX(-120%);
    animation:authButtonShine 3.4s ease-in-out infinite;
}

.login-btn:active{
    transform:translateY(0) scale(0.99);
}

#editEmailBtn:hover{
    transform:translateY(-50%) scale(1.12) rotate(-4deg);
}

.bonus-popup{
    animation:authPopupIn 0.36s ease both;
}

.bonus-popup-badge{
    animation:authBonusPulse 2.2s ease-in-out infinite;
}

.bonus-popup button{
    transition:0.2s;
}

.bonus-popup button:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 34px rgba(37,99,235,0.34);
}

@keyframes authCardEnter{
    from{
        opacity:0;
        transform:translateY(28px) scale(0.965);
        filter:blur(7px);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
        filter:blur(0);
    }
}

@keyframes authLogoDrop{
    from{
        opacity:0;
        transform:translateY(-12px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes authLogoPulse{
    0%,100%{
        transform:scale(1) rotate(0);
        filter:drop-shadow(0 0 0 rgba(59,130,246,0));
    }
    50%{
        transform:scale(1.08) rotate(2deg);
        filter:drop-shadow(0 16px 24px rgba(59,130,246,0.28));
    }
}

@keyframes authFadeUp{
    from{
        opacity:0;
        transform:translateY(14px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes authButtonShine{
    0%,38%{
        transform:translateX(-120%);
    }
    58%,100%{
        transform:translateX(120%);
    }
}

@keyframes authSheen{
    0%,44%{
        transform:translateX(-120%);
    }
    62%,100%{
        transform:translateX(120%);
    }
}

@keyframes authGlowDrift{
    0%,100%{
        transform:translate3d(0,0,0) scale(1);
    }
    50%{
        transform:translate3d(-60px,-45px,0) scale(1.14);
    }
}

@keyframes authPopupIn{
    from{
        opacity:0;
        transform:translateY(18px) scale(0.96);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

@keyframes authBonusPulse{
    0%,100%{
        box-shadow:0 0 0 rgba(34,197,94,0);
        transform:scale(1);
    }
    50%{
        box-shadow:0 0 0 10px rgba(34,197,94,0.1);
        transform:scale(1.04);
    }
}

@media (prefers-reduced-motion:reduce){
    *,
    *::before,
    *::after{
        animation:none !important;
        transition:none !important;
    }
}

.forgot-link{
    text-align:center;
    margin-top:16px;
    font-size:14px;
}

.forgot-link a{
    color:#93c5fd;
    font-weight:600;
    text-decoration:none;
}

.forgot-link a:hover{
    color:white;
}
