/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    color: white;
    direction: rtl;
}

/* Container */
.container {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Background */
.background {
    position: absolute;
    inset: 0;
    background-image: url('../../visitors/images/_bg.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) hue-rotate(240deg);
}

/* Navigation */
.nav {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

    .back-button:hover {
        color: #e9d5ff;
    }

.rtl-button {
    padding: 0.5rem 1rem;
    background-color: #6b21a8;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .rtl-button:hover {
        background-color: #7c3aed;
    }

/* Login Container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 28rem;
    background-color: rgba(88, 28, 135, 0.4);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(147, 51, 234, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

    .login-card h1 {
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 2rem;
        color: white;
    }

/* Form Elements */
.input-group {
    position: relative;
    margin-bottom: 1rem;
}

    .input-group .icon {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #e9d5ff;
    }

    .input-group input {
        width: 100%;
        padding: 0.75rem 3rem;
        background-color: rgba(88, 28, 135, 0.3);
        border: 1px solid rgba(147, 51, 234, 0.3);
        border-radius: 9999px;
        color: white;
        font-size: 1rem;
        direction:rtl;
    }

        .input-group input::placeholder {
            color: #e9d5ff;
        }

        .input-group input:focus {
            outline: none;
            border-color: #a855f7;
        }

.toggle-password {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #e9d5ff;
    cursor: pointer;
    padding: 0.25rem;
}

    .toggle-password:hover {
        color: white;
    }

.hidden {
    display: none;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

    .remember-me input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
        background-color: rgba(88, 28, 135, 0.3);
        border: 1px solid rgba(147, 51, 234, 0.3);
        border-radius: 0.25rem;
    }

.forgot-password {
    color: #e9d5ff;
    text-decoration: none;
    transition: color 0.3s;
}

    .forgot-password:hover {
        color: white;
    }

/* Login Button */
.login-button {
    width: 100%;
    padding: 0.75rem;
    background-color: white;
    color: #581c87;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 1rem 0;
}

    .login-button:hover {
        background-color: #f3e8ff;
    }

/* Register Link */
.register-link {
    text-align: center;
    margin-top: 1rem;
}

    .register-link a {
        color: #e9d5ff;
        text-decoration: none;
        transition: color 0.3s;
    }

        .register-link a:hover {
            color: white;
        }

/* Bottom Gradient */
.bottom-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 16rem;
    background: linear-gradient(to top, rgba(88, 28, 135, 0.5), transparent);
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 640px) {
    .login-card {
        padding: 1.5rem;
    }

        .login-card h1 {
            font-size: 2rem;
        }
}

/*Error Message*/
.validation-summary-errors {
    margin-bottom: 15px;
    border: 1px solid #dc3545;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl; /* Optional: Because your message is in Arabic */
}

    .validation-summary-errors ul {
        margin: 10px 0 0 0;
        padding-left: 20px;
    }

    .validation-summary-errors li {
        list-style: disc;
    }

    .validation-summary-errors .alert {
        background-color: transparent;
        color: inherit;
        border: none;
        padding: 0;
        margin-bottom: 10px;
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .validation-summary-errors .close {
        background: none;
        border: none;
        font-size: 1.2rem;
        color: #721c24;
        cursor: pointer;
    }

.text-danger1 {
    color: #dc3545; /* Bootstrap default red */
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
}

