/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: #1a1d24;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

/* Login Box */
.login-box {
    background: #242931;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 0.5s ease-out;
}

.login-box h2 {
    color: #4CAF50;
    font-size: 24px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Error Messages */
.error-messages {
    list-style: none;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 14px;
}

.error-messages li {
    margin-bottom: 0.5rem;
}

.error-messages li:last-child {
    margin-bottom: 0;
}

/* Input Boxes */
.input-box {
    margin-bottom: 1.2rem;
}

.input-box label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 14px;
}

.input-box input[type="text"],
.input-box input[type="email"],
.input-box input[type="password"] {
    width: 100%;
    padding: 12px;
    background: #1a1d24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-box input:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Checkbox Styling */
.input-box input[type="checkbox"] {
    margin-right: 8px;
}

.input-box label[for="terms_accepted"] {
    display: inline-block;
    font-size: 13px;
}

.input-box a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s;
}

.input-box a:hover {
    color: #4CAF50;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: #1a1d24;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.login-btn:hover {
    background: #4CAF50;
}

/* Links Section */
.links {
    text-align: center;
    margin-top: 1.5rem;
}

.links a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.links a:hover {
    color: #4CAF50;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Validation Styles */
.input-box input:invalid {
    border-color: rgba(255, 59, 48, 0.3);
}

.input-box input:valid {
    border-color: rgba(0, 255, 209, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 15px;
    }

    .login-box {
        padding: 1.5rem;
    }

    .login-btn {
        padding: 10px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #242931;
}

::-webkit-scrollbar-thumb {
    background: #636b74;
    border-radius: 3px;
}

/* Input Placeholder Color */
::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Autofill Styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px #1a1d24 inset;
    transition: background-color 5000s ease-in-out 0s;
}