*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;
}


html,
body{

    width:100%;

    min-height:100%;

}



body{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:20px;

    background:
        radial-gradient(circle at top left,#dbeafe,transparent 45%),
        radial-gradient(circle at bottom right,#e0e7ff,transparent 50%),
        #f8fafc;

}


.footer-link{

    color:#64748b;

    text-decoration:none;

    font-weight:500;

    transition:all 0.25s ease;

}


.footer-link:hover{

    color:#2563eb;

}

/* =========================
   MOBILE FOOTER LINK
========================= */

@media(max-width:768px){

    .footer-link{

        color:#475569;

        font-size:11px;

        font-weight:600;

    }


    .footer-link:hover{

        color:#2563eb;

    }

}
/* =====================
   CARD
===================== */

.box{

    width:880px;

    max-width:96vw;

    background:
        rgba(255,255,255,.88);

    backdrop-filter:blur(14px);

    border:
        1px solid rgba(255,255,255,.6);


    border-radius:24px;


    padding:28px 34px;


    box-shadow:
        0 25px 70px rgba(2,132,199,.15);

}




/* HEADER */

.logo{

    width:54px;

    height:54px;

    border-radius:14px;

    display:flex;

    align-items:center;

    justify-content:center;


    font-size:24px;


    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );


    color:white;


    margin-bottom:10px;

}



.title{

    font-size:26px;

    font-weight:800;

    color:#0f172a;

}



.sub{

    font-size:13px;

    color:#64748b;

    margin-bottom:18px;

}



/* GRID */


.grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:12px;

}




.input-group{

    margin-bottom:12px;

}



.input-label{

    display:block;

    margin-bottom:6px;

    font-size:12px;

    font-weight:600;

    color:#334155;

}



.input,
select{

    width:100%;

    height:42px;

    padding:10px 12px;


    border-radius:12px;

    border:1px solid #e2e8f0;


    font-size:13px;

    background:white;

    outline:none;

}



.input:focus,
select:focus{

    border-color:#2563eb;

    box-shadow:
        0 0 0 3px rgba(37,99,235,.12);

}




/* BUTTON */

.btn{

    width:100%;

    height:46px;

    border:none;


    border-radius:14px;


    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );


    color:white;


    font-size:14px;

    font-weight:700;


    cursor:pointer;

}





/* LOGIN */

.login-box{

    margin-top:16px;

    padding-top:14px;

    border-top:
        1px solid #e2e8f0;


    display:flex;

    justify-content:space-between;

    align-items:center;

}



.login-text{

    font-size:12px;

    color:#64748b;

}



.login-btn{

    text-decoration:none;


    padding:9px 14px;


    border-radius:12px;


    background:#eff6ff;


    border:
        1px solid #bfdbfe;


    color:#2563eb;


    font-size:12px;

    font-weight:700;

}




.footer{

    margin-top:14px;

    text-align:center;

    font-size:11px;

    color:#94a3b8;

}





/* =================================================
   MOBILE REGISTER
================================================= */


@media(max-width:768px){


body{

    display:block;

    padding:16px;

}



.box{

    width:100%;

    max-width:420px;


    margin:20px auto;


    padding:26px 20px;


    border-radius:22px;


}



.logo{

    margin-left:auto;

    margin-right:auto;

}



.title{

    text-align:center;

    font-size:23px;

}



.sub{

    text-align:center;

    line-height:1.5;

}



.grid{

    grid-template-columns:1fr;

    gap:0;

}



.input-group{

    margin-bottom:15px;

}



.input,
select{

    height:50px;

    font-size:15px;

}



.btn{

    height:54px;

    font-size:15px;

}



.login-box{

    flex-direction:column;

    gap:12px;

    text-align:center;

}



.login-btn{

    width:100%;

    text-align:center;

}



.footer{

    margin-top:18px;

}



}
.register-note{

    margin-top:14px;

    padding:10px 12px;

    border-radius:10px;

    background:#fff8e8;

    border:1px solid #f6d365;

}

.register-note-title{

    font-size:14px;

    font-weight:700;

    color:#b45309;

    margin-bottom:4px;

    line-height:1.2;

}

.register-note-text{

    font-size:13px;

    line-height:1.35;

    color:#5b4a1b;

}
.register-note-text ul{

    margin:2px 0;

    padding-left:16px;

}

.register-note-text li{

    margin:2px 0;

    line-height:1.25;

    font-size:13px;

    list-style:disc;

}

.register-note-text li::marker{

    color:#d97706;

}

/* =========================================================
   FLASH MESSAGE
   ========================================================= */

.flash-box{
    width:100%;

    margin:10px 0 0;

    display:flex;
    flex-direction:column;

    gap:6px;
}

.flash-item{
    width:100%;

    display:flex;
    align-items:center;
    justify-content:center;

    min-height:36px;

    padding:8px 14px;

    border-radius:9px;

    border:1px solid #fca5a5;

    background:
        linear-gradient(
            135deg,
            #fff7f7,
            #fff1f2
        );

    color:#b91c1c;

    font-size:12px;

    font-weight:600;

    line-height:1.45;

    text-align:center;

    overflow-wrap:anywhere;
    word-break:break-word;

    box-shadow:
        0 3px 10px rgba(185,28,28,.07);

    animation:
        flashIn .22s ease-out;
}


/* =========================================================
   FLASH ANIMATION
   ========================================================= */

@keyframes flashIn{

    from{
        opacity:0;

        transform:
            translateY(-4px)
            scale(.98);
    }

    to{
        opacity:1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   FLASH MESSAGE — MOBILE
   ========================================================= */

@media (max-width:768px){

    .flash-box{
        margin:20px 0 0;

        gap:5px;
    }

    .flash-item{
        min-height:34px;

        padding:7px 10px;

        border-radius:8px;

        font-size:11px;

        line-height:1.4;

        box-shadow:
            0 2px 7px rgba(185,28,28,.06);
    }

}


/* =========================================================
   FLASH MESSAGE — VERY SMALL MOBILE
   ========================================================= */

@media (max-width:380px){

    .flash-item{
        min-height:32px;

        padding:6px 8px;

        font-size:10.5px;

        border-radius:7px;
    }

}

/* =========================
   ẨN / HIỆN MẬT KHẨU
========================= */

.password-wrapper{

    position:relative;

    width:100%;

}


.password-wrapper .password-input{

    width:100%;

    padding-right:42px;

}


.password-toggle{

    position:absolute;

    top:50%;

    right:10px;

    transform:translateY(-50%);

    width:30px;
    height:30px;

    display:flex;

    align-items:center;
    justify-content:center;

    border:none;

    background:transparent;

    color:#64748b;

    cursor:pointer;

    padding:0;

}


.password-toggle:hover{

    color:#2563eb;

}


.password-toggle i{

    font-size:13px;

}

/* ==========================================================
   REGISTER FLASH
========================================================== */

.flash-box{

    position:fixed;

    top:24px;
    right:24px;

    z-index:99999;

    display:flex;

    flex-direction:column;

    gap:10px;

    width:min(390px, calc(100vw - 32px));

    pointer-events:none;

}


/* ==========================================================
   FLASH ITEM
========================================================== */

.flash-item{

    display:flex;

    align-items:center;

    gap:12px;

    padding:13px 14px;

    background:#ffffff;

    border-radius:12px;

    box-shadow:
        0 12px 30px rgba(0,0,0,.12),
        0 3px 8px rgba(0,0,0,.06);

    border-left:4px solid;

    animation:registerFlashIn .35s ease;

    pointer-events:auto;

}


/* ==========================================================
   SUCCESS
========================================================== */

.flash-success{

    border-left-color:#22c55e;

}


.flash-success .flash-icon{

    background:#dcfce7;

    color:#16a34a;

}


/* ==========================================================
   ERROR
========================================================== */

.flash-error{

    border-left-color:#ef4444;

}


.flash-error .flash-icon{

    background:#fee2e2;

    color:#dc2626;

}


/* ==========================================================
   WARNING
========================================================== */

.flash-warning{

    border-left-color:#f59e0b;

}


.flash-warning .flash-icon{

    background:#fef3c7;

    color:#d97706;

}


/* ==========================================================
   ICON
========================================================== */

.flash-icon{

    width:30px;

    height:30px;

    flex:0 0 30px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    font-size:15px;

    font-weight:800;

}


/* ==========================================================
   MESSAGE
========================================================== */

.flash-message{

    flex:1;

    color:#334155;

    font-size:14px;

    font-weight:600;

    line-height:1.4;

}


/* ==========================================================
   CLOSE
========================================================== */

.flash-close{

    border:0;

    background:transparent;

    color:#94a3b8;

    font-size:21px;

    line-height:1;

    cursor:pointer;

    padding:2px 4px;

}


.flash-close:hover{

    color:#475569;

}


/* ==========================================================
   ANIMATION
========================================================== */

@keyframes registerFlashIn{

    from{

        opacity:0;

        transform:translateX(30px);

    }

    to{

        opacity:1;

        transform:translateX(0);

    }

}


/* ==========================================================
   TỰ ĐỘNG BIẾN MẤT
========================================================== */

.flash-item{

    animation:
        registerFlashIn .35s ease,
        registerFlashOut .5s ease 5s forwards;

}


@keyframes registerFlashOut{

    from{

        opacity:1;

        transform:translateX(0);

    }

    to{

        opacity:0;

        transform:translateX(30px);

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:600px){

    .flash-box{

        top:14px;

        right:14px;

        left:14px;

        width:auto;

    }

}