:root {
    --body-color: #ffffff;
    --nav-color: #668b8057;
    --side-nav: #e1e1e1;
    --text-color: #2d453d;
    --search-bar: #F2F2F2;
    --search-text: #010718;
    --title-background-color: linear-gradient(45deg, #e6b264, #2d453d 70%);
    --circle--color: #2d453d;
    --counter-color: #4a716489;
}

body.dark {
    --body-color: #18191A;
    --nav-color: #242526;
    --side-nav: #242526;
    --text-color: #CCC;
    --search-bar: #242526;
    --title-background-color: linear-gradient(45deg, #e6b264, #c1c2c2 70%);
    --circle--color: #dba245;
    --counter-color: #18191a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--body-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.dark-light {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 999;
}

.dark-light i {
    font-size: 24px;
    color: var(--text-color);
}

.dark-light .sun {
    display: none;
}

body.dark .moon {
    display: none;
}

body.dark .sun {
    display: block;
    color: #e6b264;
}

.login-container {
    background-color: var(--body-color);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    margin: 1rem;
    transition: all 0.3s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.logo i {
    margin-left: 8px;
    font-size: 2rem;
    background: var(--title-background-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.login-header p {
    color: var(--text-color);
    opacity: 0.8;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: var(--search-bar);
    color: var(--search-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--circle--color);
    box-shadow: 0 0 0 2px rgba(45, 69, 61, 0.2);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-left: 8px;
    accent-color: var(--circle--color);
}

.forgot-password {
    color: var(--circle--color);
    text-decoration: none;
    transition: opacity 0.3s;
}

.forgot-password:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--title-background-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-login {
    margin-top: 2rem;
    text-align: center;
}

.social-login p {
    margin-bottom: 1rem;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.social-login p::before {
    right: 0;
}

.social-login p::after {
    left: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn i {
    font-size: 1.2rem;
    color: var(--text-color);
}

.social-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.register-link {
    margin-top: 1.5rem;
    text-align: center;
}

.register-link a {
    color: var(--circle--color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.register-link a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 576px) {
    .login-container {
        padding: 1.5rem;
        margin: 0.5rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .social-login p::before,
    .social-login p::after {
        width: 25%;
    }
}

@media (max-width: 375px) {
    .login-container {
        padding: 1.2rem;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .social-login p::before,
    .social-login p::after {
        width: 20%;
    }
}