body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    height: 100vh;
    display: flex;
    align-items: center;
}


.login-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    margin: 2rem auto;
}

.login-image {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 2rem;
    color: white;
}

.login-image h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.login-image p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.login-form {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-control {
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.btn-login {
    background: var(--primary);
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    width: 100%;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h3 {
    font-family: 'Playfair Display', serif;
    color: var(--dark);
    font-size: 2rem;
}

.forgot-password {
    text-align: right;
    margin-bottom: 1rem;
}

.forgot-password a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin: 1rem 0;
}

.forgot-password a:hover {
    color: var(--secondary);
}

.register-link {
    text-align: center;
    margin-top: 2rem;
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: var(--secondary);
}

.social-login {
    text-align: center;
    margin-top: 30px;
}

.social-login p {
    position: relative;
    margin-bottom: 20px;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 30%;
    background-color: #ddd;
    top: 50%;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.facebook {
    background-color: #3b5998;
}

.google {
    background-color: #db4437;
}

.twitter {
    background-color: #1da1f2;
}

/* Password Field Styles */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--dark);
    opacity: 0.6;
    cursor: pointer;
    padding: 5px;
    transition: opacity 0.3s ease;
}

.password-toggle:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
    }

    .login-image {
        display: none;
    }

    .login-form {
        padding: 2rem 1rem;
    }
}

/* RTL Support */
html[lang="ar"] .login-form {
    text-align: right;
}

html[lang="ar"] .forgot-password {
    text-align: left;
}

/* RTL Support */
.rtl .password-container input {
    padding-right: 12px;
    padding-left: 40px;
}

.rtl .password-toggle {
    right: auto;
    left: 10px;
}

