﻿/* CosplayVN - Login (young & vibrant) */
:root {
    --pink: #ff4fa3;
    --purple: #7c4dff;
    --cyan: #22d3ee;
    --yellow: #ffd23f;
    --ink: #1b1340;
    --glass: rgba(255,255,255,.16);
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%
}

    body.tdd-login {
        font-family: 'Poppins','Segoe UI',Arial,sans-serif;
        color: #fff;
        min-height: 100vh;
        background: linear-gradient(125deg,#ff4fa3,#7c4dff,#22d3ee,#ff7a59);
        background-size: 400% 400%;
        animation: tddBg 16s ease infinite;
        overflow-x: hidden;
    }

@keyframes tddBg {
    0% {
        background-position: 0 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0 50%
    }
}

body.tdd-login form {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    z-index: 2
}

/* floating blobs */
.tdd-blobs {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden
}

    .tdd-blobs span {
        position: absolute;
        display: block;
        border-radius: 50%;
        filter: blur(2px);
        opacity: .55;
        animation: tddFloat 14s ease-in-out infinite
    }

        .tdd-blobs span:nth-child(1) {
            width: 260px;
            height: 260px;
            left: -60px;
            top: 8%;
            background: var(--yellow)
        }

        .tdd-blobs span:nth-child(2) {
            width: 180px;
            height: 180px;
            right: 6%;
            top: 12%;
            background: var(--cyan);
            animation-delay: -4s
        }

        .tdd-blobs span:nth-child(3) {
            width: 320px;
            height: 320px;
            right: -100px;
            bottom: -60px;
            background: var(--pink);
            animation-delay: -8s
        }

        .tdd-blobs span:nth-child(4) {
            width: 120px;
            height: 120px;
            left: 12%;
            bottom: 10%;
            background: #fff;
            opacity: .3;
            animation-delay: -2s
        }

@keyframes tddFloat {
    0%,100% {
        transform: translate(0,0) scale(1)
    }

    50% {
        transform: translate(30px,-40px) scale(1.12)
    }
}

.tdd-star {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    font-size: 22px;
    animation: tddTwinkle 3s ease-in-out infinite
}

@keyframes tddTwinkle {
    0%,100% {
        opacity: .2;
        transform: scale(.7) rotate(0)
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(20deg)
    }
}

/* header */
body.tdd-login .tdd-header {
    text-align: center;
    margin-bottom: 18px
}

    body.tdd-login .tdd-header h1 {
        margin: 0;
        font-size: clamp(1.8rem,5vw,2.8rem);
        font-weight: 800;
        letter-spacing: 1px;
        text-shadow: 0 4px 0 rgba(27,19,64,.25),0 10px 30px rgba(0,0,0,.2);
    }

/* card */
#tdd-VSNLoginPage {
    width: 100%;
    max-width: 440px;
    position: relative
}

    #tdd-VSNLoginPage .tdd-advBanner {
        margin-bottom: 14px;
        border-radius: 18px;
        overflow: hidden
    }

        #tdd-VSNLoginPage .tdd-advBanner img {
            width: 100%;
            display: block
        }

#tdd-LoginBox {
    background: var(--glass);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 28px;
    padding: 34px 30px 26px;
    box-shadow: 0 25px 60px rgba(27,19,64,.35);
    animation: tddPop .7s cubic-bezier(.2,1.3,.4,1) both;
}

@keyframes tddPop {
    from {
        opacity: 0;
        transform: translateY(40px) scale(.92)
    }

    to {
        opacity: 1;
        transform: none
    }
}

#tdd-LoginBox #tdd-Banner h1 {
    margin: 0 0 6px;
    font-size: 1.45rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(90deg,#fff,var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent
}

#tdd-LoginBox #tdd-Title {
    text-align: center;
    font-size: .85rem;
    opacity: .9;
    margin-bottom: 14px;
    line-height: 1.5
}

#tdd-LoginBox #tdd-Message {
    min-height: 0;
    text-align: center;
    margin-bottom: 6px
}

#tdd-LoginBox .tdd-msg {
    display: inline-block;
    background: rgba(255,255,255,.95);
    color: #e11d48;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: .85rem;
    animation: tddShake .4s
}

    #tdd-LoginBox .tdd-msg:empty {
        display: none
    }

@keyframes tddShake {
    25% {
        transform: translateX(-6px)
    }

    75% {
        transform: translateX(6px)
    }
}

/* rows */
#tdd-LoginBox ul.tdd-row {
    list-style: none;
    margin: 14px 0;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255,255,255,.95);
    border-radius: 16px;
    transition: box-shadow .25s,transform .25s;
    border: 2px solid transparent
}

    #tdd-LoginBox ul.tdd-row:focus-within {
        box-shadow: 0 0 0 4px rgba(255,210,63,.6);
        transform: translateY(-2px);
        border-color: var(--yellow)
    }

    #tdd-LoginBox ul.tdd-row li {
        list-style: none;
        margin: 0;
        padding: 0
    }

#tdd-LoginBox li.tdd-caption {
    width: 48px;
    text-align: center;
    color: var(--purple);
    font-size: 1.2rem;
    flex: none
}

#tdd-LoginBox li.tdd-control {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0
}

#tdd-LoginBox li.tdd-info {
    display: none
}

#tdd-LoginBox .tdd-textbox {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: 600 .98rem 'Poppins',Arial,sans-serif;
    padding: 15px 12px 15px 0;
    height: auto
}

    #tdd-LoginBox .tdd-textbox::placeholder {
        color: #9a93b8;
        font-weight: 400
    }

#tdd-LoginBox #txtPassword.tdd-hide-pw {
    -webkit-text-security: disc;
    text-security: disc
}

.tdd-eye {
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 14px;
    color: var(--purple);
    transition: transform .2s
}

    .tdd-eye:hover {
        transform: scale(1.25)
    }

/* captcha */
#tdd-LoginBox li.tdd-capcha {
    gap: 8px;
    padding: 6px 8px 6px 0
}

    #tdd-LoginBox li.tdd-capcha img {
        float: none !important;
        width: auto !important;
        height: 42px !important;
        border-radius: 10px;
        flex: none;
        margin: 0 !important
    }

    #tdd-LoginBox li.tdd-capcha a {
        float: none !important;
        width: auto !important;
        height: auto !important;
        color: var(--pink) !important;
        flex: none;
        display: flex;
        align-items: center;
        transition: transform .5s
    }

        #tdd-LoginBox li.tdd-capcha a:hover {
            transform: rotate(360deg)
        }

        #tdd-LoginBox li.tdd-capcha a i {
            position: static !important;
            top: 0 !important
        }

    #tdd-LoginBox li.tdd-capcha .tdd-textbox {
        float: none !important;
        width: 100% !important;
        min-width: 0;
        padding: 10px 6px
    }

/* button */
#tdd-LoginBox div.tdd-row {
    margin: 0
}

#tdd-LoginBox a.tdd-btn {
    display: block;
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .5px;
    padding: 15px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg,var(--pink),var(--purple));
    box-shadow: 0 10px 25px rgba(124,77,255,.55);
    transition: transform .2s,box-shadow .2s;
}

    #tdd-LoginBox a.tdd-btn:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 16px 32px rgba(255,79,163,.6)
    }

    #tdd-LoginBox a.tdd-btn:active {
        transform: scale(.97)
    }

    #tdd-LoginBox a.tdd-btn::after {
        content: "";
        position: absolute;
        top: 0;
        left: -80%;
        width: 50%;
        height: 100%;
        background: linear-gradient(120deg,transparent,rgba(255,255,255,.55),transparent);
        transform: skewX(-20deg);
        animation: tddShine 3s infinite
    }

@keyframes tddShine {
    to {
        left: 140%
    }
}

#tdd-LoginBox a.tdd-btn.loading {
    pointer-events: none;
    opacity: .8
}

#tdd-LoginBox div.tdd-row:last-child {
    text-align: center;
    font-size: .78rem;
    margin-top: 14px;
    opacity: .85
}

#tdd-LoginBox div.tdd-row span {
    color: var(--yellow) !important
}

body.tdd-login .tdd-footer {
    margin-top: 22px;
    text-align: center;
    font-size: .78rem;
    opacity: .9;
    position: relative;
    z-index: 2
}

    body.tdd-login .tdd-footer a {
        color: #fff
    }

/* ripple */
.tdd-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    transform: scale(0);
    animation: tddRipple .6s linear;
    pointer-events: none
}

@keyframes tddRipple {
    to {
        transform: scale(4);
        opacity: 0
    }
}

@media(max-width:480px) {
    #tdd-LoginBox {
        padding: 26px 18px 20px;
        border-radius: 22px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }
}
