*{
    box-sizing:border-box;
}

body{
    font-family:Poppins,sans-serif;
    margin:0;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background: radial-gradient(circle at top,#0a2233 0%,#04141f 70%);
    overflow:hidden;
    position:relative;
    padding:24px;
}

body::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0,180,216,.15), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(0,150,199,.12), transparent 45%);
    animation: floatBg 12s ease-in-out infinite alternate;
    z-index:0;
}

@keyframes floatBg{
    from{transform:translateY(0)}
    to{transform:translateY(-20px)}
}

.login-box{
    position:relative;
    z-index:1;
    width:100%;
    max-width:380px;
    padding:36px 34px;
    border-radius:22px;
    background:rgba(15,42,58,.58);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    box-shadow:
        0 35px 80px rgba(0,0,0,.6),
        inset 0 0 0 1px rgba(255,255,255,.12);
    color:#E6F9FF;
    text-align:center;
    animation: cardIn .6s ease;
}

@keyframes cardIn{
    from{opacity:0; transform:translateY(20px) scale(.98)}
    to{opacity:1; transform:none}
}

.logo{
    width:120px;
    height:120px;
    margin:0 auto 14px;
    display:block;
    object-fit:contain;
    filter:drop-shadow(0 8px 18px rgba(0,180,216,.55));
    animation: rotarPadus 18s linear infinite;
    opacity:.95;
}

@keyframes rotarPadus{
    from{transform:rotateY(360deg);}
    to{transform:rotateY(0deg);}
}

.title{
    margin:0 0 8px;
    font-size:24px;
    font-weight:700;
    color:#E6F9FF;
}

.subtitle{
    margin:0 0 20px;
    font-size:13px;
    line-height:1.6;
    color:#bfe2ee;
}

.input-wrap{
    position:relative;
    text-align:left;
}

.field-label{
    display:block;
    font-size:13px;
    color:#cfeaf4;
    margin:0 0 8px;
    font-weight:500;
}

input[type="email"]{
    width:100%;
    padding:14px;
    border-radius:12px;
    border:none;
    outline:none;
    margin-bottom:14px;
    font-size:14px;
    background:rgba(255,255,255,.96);
    color:#072131;
    transition: box-shadow .2s ease, transform .2s ease;
}

input[type="email"]:focus{
    box-shadow:0 0 0 4px rgba(0,180,216,.18);
    transform:translateY(-1px);
}

button{
    width:100%;
    padding:14px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,#00b4d8,#0096c7);
    color:#02202f;
    font-weight:700;
    font-size:15px;
    cursor:pointer;
    box-shadow:0 12px 30px rgba(0,180,216,.45);
    transition:.25s;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

button:hover{
    transform:translateY(-1px);
    box-shadow:0 16px 36px rgba(0,180,216,.6);
}

button.loading{
    pointer-events:none;
    opacity:.8;
}

.forgot{
    display:block;
    margin-top:18px;
    font-size:14px;
    color:#9adcf2;
    text-decoration:none;
}

.forgot span{
    color:#00b4d8;
    font-weight:600;
}

.forgot:hover{
    text-decoration:underline;
}

.msg{
    margin-bottom:14px;
    padding:12px 14px;
    border-radius:14px;
    font-size:13px;
    text-align:left;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
}

.msg.err{
    color:#ffd7df;
    border-color:rgba(255,77,109,.30);
    background:rgba(255,77,109,.08);
}

.msg.ok{
    color:#d4ffe8;
    border-color:rgba(34,197,94,.30);
    background:rgba(34,197,94,.10);
}

.tiny{
    margin-top:16px;
    font-size:12px;
    color:#a8d2e1;
    line-height:1.5;
}

.ticker{
    width:100%;
    overflow:hidden;
}

.ticker-text{
    white-space:nowrap;
    display:inline-block;
    padding-left:100%;
    animation: tickerMove 14s linear infinite;
}

@keyframes tickerMove{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-100%);
    }
}

.spinner{
    width:18px;
    height:18px;
    border-radius:50%;
    border:3px solid rgba(255,255,255,.4);
    border-top-color:#02202f;
    animation:spin .8s linear infinite;
}

@keyframes spin{
    to{transform:rotate(360deg)}
}

@media (max-width: 480px){
    .login-box{
        padding:28px 20px;
    }

    .logo{
        width:96px;
        height:96px;
    }

    .title{
        font-size:22px;
    }
}