* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-image: url('https://images.unsplash.com/photo-1557683316-973673baf926?auto=format&fit=crop&w=2940&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-title, .login-subtitle {
    text-align: center;
}

.login-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1E40AF;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 1.2rem;
    color: #4B5563;
    margin-bottom: 2rem;
}

.form-label {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.form-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #374151;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 1px #3B82F6;
}

.switch-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    background-color: #D1D5DB;
    border-radius: 9999px;
    cursor: pointer;
    margin-top: 0.25rem;

}

.switch-checkbox:checked {
    background-color: #10B981;
}

.switch-checkbox:before {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    background-color: white;
    border-radius: 9999px;
    transition: transform 0.3s;
}

.switch-checkbox:checked:before {
    transform: translateX(1.75rem);
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background-color: #2563EB;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1D4ED8;
}

.btn-warning {
    width: 100%;
    padding: 1rem;
    background-color: #F59E0B;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-warning:hover {
    background-color: #D97706;
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: right;
}

.hidden {
    display: none;
}
.input-icon-container {
    position: relative;
}

.input-icon-container .form-input {
    padding-right: 3rem; 
}

.input-icon-container .icon {
    position: absolute;
    right: 1rem; 
    top: 50%;
    transform: translateY(-50%);
    color: #374151;
}
.fas.fa-user::before {
    content: '\f007'; 
}

.fas.fa-lock::before {
    content: '\f023';
}
.mt-4 {
    margin-top: 1rem;
}