/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

/* BODY BACKGROUND */
body{
    height:100vh;

    background:
        linear-gradient(rgba(2,6,23,0.7), rgba(15,23,42,0.85)),
        url('../img/nature-bg.jpg') no-repeat center center/cover;

    display:flex;
    justify-content:center;
    align-items:center;
}

/* LOGIN BOX */
.login-box{
    background:#020617;
    padding:45px;
    width:420px;
    border-radius:14px;
    box-shadow:0 0 30px rgba(0,0,0,0.7);
    text-align:center;
    animation:fadeIn 0.6s ease;
}

/* TITLE */
.login-box h2{
    margin-bottom:20px;
    color:#ffffff;
    font-weight:600;
}

.login-box h2 span{
    color:#ff3333;
}

/* INPUT FIELD */
.login-box input{
    width:100%;
    padding:12px;
    margin:10px 0;
    border:none;
    border-radius:8px;
    background:#0f172a;
    color:#ffffff;
    font-size:14px;
    transition:0.3s;
}

.login-box input::placeholder{
    color:#94a3b8;
}

.login-box input:focus{
    outline:none;
    border:1px solid #ff3333;
    box-shadow:0 0 5px rgba(255,51,51,0.3);
}

/* READONLY INPUT */
input[readonly]{
    opacity:0.7;
    cursor:not-allowed;
}

/* BUTTON */
.login-box button{
    width:100%;
    padding:12px;
    margin-top:10px;
    background:#ff0000;
    border:none;
    color:#ffffff;
    font-size:15px;
    border-radius:8px;
    cursor:pointer;
    transition:0.3s;
}

.login-box button:hover{
    background:#ff3333;
    transform:translateY(-2px);
}

/* ERROR MESSAGE */
.error{
    color:#ff4d4d;
    margin-top:10px;
    font-size:14px;
}

/* BACK LINK */
.back-link{
    margin-top:15px;
}

.back-link a{
    color:#22c55e;
    text-decoration:none;
    font-size:14px;
    font-weight:500;
    transition:0.3s;
}

.back-link a:hover{
    text-decoration:underline;
    color:#4ade80;
}

/* FOOTER */
.login-footer{
    position:fixed;
    bottom:10px;
    left:0;
    width:100%;
    padding:0 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:13px;
    color:#e2e8f0;
}

/* FOOTER LEFT */
.footer-left{
    opacity:0.8;
}

/* FOOTER RIGHT */
.footer-right a{
    color:#22c55e;
    text-decoration:none;
    font-weight:500;
}

.footer-right a:hover{
    text-decoration:underline;
}

/* ANIMATION */
@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* RESPONSIVE */
@media(max-width:500px){

    .login-box{
        width:90%;
        padding:30px;
    }

    .login-footer{
        flex-direction:column;
        gap:5px;
        text-align:center;
    }
}