* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    height: 100vh;
    background: linear-gradient(135deg, #20282D, #ffffff);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

    .login-container h2 {
        text-align: center;
        margin-bottom: 1.5rem;
        color: #333;
    }

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

input[type="text"],
input[type="number"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

    .forgot-password a {
        color: #20282D;
        text-decoration: none;
    }

        .forgot-password a:hover {
            text-decoration: underline;
        }

.login-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #20282D;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
}

    .login-button:hover {
        background-color: #20282D;
    }

@media (max-width: 500px) {
    .login-container {
        padding: 1.5rem;
    }
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}


.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

    .close:hover {
        color: #000;
    }

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-size: 16px;
}

.modal-content button {
    margin-top: 15px;
    width: 100%;
    background: #28a745;
}

.modal button {
    width: 100%;
    padding: 0.75rem;
    background-color: #20282D;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal button:hover {
    background-color: #20282D;
}


/* Loader styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

    .loader-overlay .fa-spinner {
        font-size: 3rem;
        color: #000000;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 500px) {
    .login-container {
        padding: 1.5rem;
    }
}

.captcha-wrapper {
    width: 100%;
    max-width: 100%;
}

    .captcha-wrapper .cf-turnstile {
        width: 100% !important;
    }

.cf-turnstile iframe {
    width: 100% !important;
    min-width: 100% !important;
}


.mb-10 {
    margin-bottom: 10px;
}
.mb-15 {
    margin-bottom: 15px;
}
.mb-20 {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

#login-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}