/* Background image */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    background: url("background.png") no-repeat center center/cover;
    overflow: hidden;
}

/* Dim + blur overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);   /* dim */
    backdrop-filter: blur(5px);      /* blur */
}

/* Login box */
.login-container {
    background: rgba(255, 255, 255, 0.90);
    padding: 30px;
    width: 350px;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    text-align: center;

    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, 40%);
    opacity: 0;
    animation: slideIn 0.7s forwards ease-out;
}

/* Slide-in animation */
@keyframes slideIn {
    from {
        transform: translate(-50%, 70%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Inputs moved slightly left */
input {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 15px;
    margin-left: -10px;  /* <-- Moves left */
}

input:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 4px rgba(108, 99, 255, 0.3);
}

.btn, .discord-btn {
    width: 94%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    margin-left: -5px; /* align buttons */
}

.btn {
    background: #6c63ff;
}

.btn:hover {
    background: #5a54e6;
}

.discord-btn {
    background: #5865F2;
}

.discord-btn:hover {
    background: #4752c4;
}

/* Links */
.forgot, .newuser {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #6c63ff;
    text-decoration: none;
}

.forgot:hover, .newuser:hover {
    text-decoration: underline;
}

.info-msg {
    font-size: 13px;
    color: #444;
    margin-top: 12px;
}

/* Mobile-friendly adjustments */
@media (max-width: 500px) {
    .login-container {
        width: 85%;
        padding: 20px;
    }

    input {
        width: 92%;
    }

    .btn, .discord-btn {
        width: 96%;
    }
}
