/*Login page*/
#login {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #6fc8f3, #4364f7); /* subtle background gradient */
    min-height: 100vh; /* full viewport height */
    padding: 20px;
}

/* Login box styling */
#userlogin {
    text-align: center;
    border-radius: 15px;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#userlogin:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Form inside the box */
#userlogin form {
    display: grid;
    gap: 15px;
    text-align: left;
}

/* Labels */
#userlogin label {
    font-weight: 600;
    color: #333333;
}

/* Input fields */
#userlogin input {
    border-radius: 8px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    padding: 12px;
    font-size: 16px;
    transition: border 0.3s ease, background 0.3s ease;
}

#userlogin input:focus {
    border-color: #0887f0;
    background-color: #fff;
    outline: none;
}

/* Login button */
#userlogin button {
    width: 100%;
    border-radius: 10px;
    padding: 12px;
    border: none;
    background-color: #0887f0;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#userlogin button:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}

/* Forget password link */
#userlogin a {
    display: block;
    text-align: right;
    text-decoration: none;
    color: #0887f0;
    font-size: 14px;
    margin-top: 5px;
}

#userlogin a:hover {
    text-decoration: underline;
}
/* Back arrow at top-left */
.back-arrow {
    position: absolute; /* place it at fixed position */
    top: 20px;
    left: 20px;
    text-decoration: none;
    color: #ffffff; 
    font-weight: bold;
    font-size: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: #0887f0; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background 0.3s ease, transform 0.2s ease;
}

.back-arrow:hover {
    background-color: #005bb5; /* darker blue on hover */
    transform: scale(1.05);
}
/* Responsive adjustments */
@media (max-width: 500px) {
    #userlogin {
        padding: 30px 20px;
        width: 100%;
    }

    #userlogin input, #userlogin button {
        font-size: 14px;
        padding: 10px;
    }
}