/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    min-height:100vh;

    background:#fff;

    color:#000;

    font-family:Arial, Helvetica, sans-serif;

    overflow-x:hidden;

    position:relative;

}

/* =========================
   BACKGROUND
========================= */

.threads-bg{

    position:absolute;

    top:0;
    left:0;

    width:100%;

    height:360px;

    background-image:url("images/threads-bg.PNG");

    background-repeat:no-repeat;

    background-position:center top;

    background-size:cover;

    pointer-events:none;

    z-index:1;

}

/* =========================
   LOGIN BOX
========================= */

.login-box{

    position:relative;

    z-index:2;

    width:410px;

    margin:0 auto;

    padding-top:340px;

    text-align:center;

    animation:fade .45s ease;

}

.login-box h3{

    font-size:22px;

    font-weight:700;

    margin-bottom:30px;

    margin-top:25px;

}

form{

    width:100%;

}

/* =========================
   INPUT BOX
========================= */

.input-box{

    position:relative;

    margin-bottom:15px;

}

/* INPUT */

.input-box input{

    width:100%;

    height:60px;

    padding:

        24px
        18px
        8px;

    border-radius:18px;

    border:1px solid #ddd;

    background:#fff;

    font-size:15px;

    outline:none;

    transition:.25s;

    box-shadow:
        0 6px 18px rgba(0,0,0,.04);

}

/* HOVER */

.input-box input:hover{

    box-shadow:

        0 10px 24px rgba(0,0,0,.08);

}

/* FOCUS */

.input-box input:focus{

    border-color:#000;

    box-shadow:

        0 0 0 4px rgba(0,0,0,.05),

        0 10px 24px rgba(0,0,0,.08);

}

/* LABEL */

.input-box label{

    position:absolute;

    left:18px;

    top:50%;

    transform:translateY(-50%);

    color:#999;

    background:#fff;

    padding:0 4px;

    pointer-events:none;

    transition:.18s ease;

}

/* CLICK HOẶC ĐÃ NHẬP */

.input-box input:focus + label,

.input-box input:not(:placeholder-shown) + label{

    top:10px;

    transform:none;

    font-size:11px;

    color:#666;

}

/* =========================
   LOGIN BUTTON
========================= */

button{

    cursor:pointer;

}

form button{

    width:100%;

    height:56px;

    margin-top:10px;

    border:none;

    border-radius:18px;

    background:#000;

    color:#fff;

    font-size:15px;

    font-weight:600;

    transition:.25s;

    box-shadow:

        0 10px 24px rgba(0,0,0,.18);

}

form button:hover{

    transform:translateY(-2px);

    background:#222;

}

/* =========================
   FORGOT PASSWORD
========================= */

.forgot{

    display:block;

    margin:18px 0;

    text-decoration:none;

    color:#8c8c8c;

    font-size:13px;

    transition:.2s;

}

.forgot:hover{

    color:#000;

}
/* =========================
   DIVIDER
========================= */

.divider{

    display:flex;

    align-items:center;

    gap:14px;

    margin:22px 0;

    color:#999;

    font-size:13px;

}

.divider::before,
.divider::after{

    content:"";

    flex:1;

    height:1px;

    background:#e7e7e7;

}

/* =========================
   INSTAGRAM BUTTON
========================= */

.instagram-btn{

    width:100%;

    height:72px;

    border:1px solid #e5e5e5;

    border-radius:20px;

    background:#fff;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 20px;

    transition:.25s;

    box-shadow:

        0 10px 22px rgba(0,0,0,.05);

}

.instagram-btn:hover{

    transform:translateY(-3px);

    box-shadow:

        0 18px 35px rgba(0,0,0,.10);

}

.instagram-left{

    display:flex;

    align-items:center;

    gap:16px;

}

.ig-icon{

    width:42px;

    height:42px;

    border-radius:14px;

    display:grid;

    place-items:center;

    font-size:18px;

    color:white;

    background:linear-gradient(
        135deg,
        #feda75,
        #fa7e1e,
        #d62976,
        #962fbf,
        #4f5bd5
    );

}

.arrow{

    font-size:26px;

    color:#888;

    transition:.2s;

}

.instagram-btn:hover .arrow{

    transform:translateX(4px);

}

/* =========================
   QR
========================= */

.qr-box{

    position:fixed;

    right:40px;

    bottom:40px;

    text-align:center;

    padding:18px;

    border-radius:24px;

    background:white;

    box-shadow:

        0 18px 45px rgba(0,0,0,.12);

    transition:.25s;

}

.qr-box:hover{

    transform:translateY(-4px);

}

.qr-box p{

    color:#888;

    font-size:12px;

    margin-bottom:12px;

}

.qr{

    width:150px;

    height:150px;

    overflow:hidden;

    border-radius:18px;

    background:white;

    display:flex;

    justify-content:center;

    align-items:center;

}

.qr img{

    width:100%;

    height:100%;

    object-fit:cover;

}

/* =========================
   FOOTER
========================= */

footer{

    position:fixed;

    left:0;

    bottom:25px;

    width:100%;

    text-align:center;

    color:#999;

    font-size:11px;

}

footer span{

    margin:0 10px;

    cursor:pointer;

    transition:.2s;

}

footer span:hover{

    color:#000;

}

/* =========================
   ANIMATION
========================= */

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(25px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* =========================
   TABLET
========================= */

@media(max-width:900px){

    .login-box{

        width:360px;

        padding-top:300px;

    }

    .threads-bg{

        height:300px;

    }

    .qr-box{

        display:none;

    }

}

/* =========================
   MOBILE
========================= */

@media(max-width:600px){

    body{

        padding-bottom:90px;

        overflow-y:auto;

    }

    .threads-bg{

        height:230px;

    }

    .login-box{

        width:calc(100% - 36px);

        max-width:360px;

        padding-top:220px;

    }

    .login-box h3{

        font-size:18px;

    }

    .input-box input{

        height:56px;

    }

    .instagram-btn{

        height:66px;

    }

    footer{

        position:static;

        margin-top:60px;

        padding-bottom:20px;

        line-height:24px;

    }

    footer span{

        display:inline-block;

        margin:3px 8px;

    }

}