:root {
    --primary-color: #0ea5e9;
    --secondary-color: #f59e0b;
    --accent-color: #ef4444;
    --background-color: #f9fafb;
    --surface-color: #ffffff;
    --text-color: #1f2937;
    --heading-color: #111827;
    --border-color: #e5e7eb;
    --nav-bg: #ffffff;
    --nav-text: #1f2937;
    --hover-color: #0d9488;
    --welcome-bg: #e0f7ff;
    --form-bg: #ffffff;
}

[data-theme="dark"] {
    --primary-color: #38bdf8;
    --secondary-color: #facc15;
    --accent-color: #fb7185;
    --background-color: #334155;
    --surface-color: #1e293b;
    --text-color: #f3f4f6;
    --heading-color: #ffffff;
    --border-color: #334155;
    --nav-bg: #1e293b;
    --nav-text: #f3f4f6;
    --hover-color: #38bdf8;
    --welcome-bg: #0f172a;
    --form-bg: #1e293b;
}

/* ==== Reset & Base ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main, 'Poppins', sans-serif);
    background: var(--welcome-bg);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
}


/* ==== Auth Containers (Signup + Login) ==== */
.signup-container,
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    background: url('../../images/sections/login-bg.jpg') no-repeat center center/cover;;
    transition: background 0.3s ease-in-out;
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

.form-box {
    background: var(--form-bg);
    border-radius: 10px;
    padding: 30px 40px;
    max-width: 400px;
    width: 100%;
    margin-top: 5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    animation: fadeSlideUp 0.5s ease;
}

.form-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.6rem;
    animation: fadeInLeft 1s ease forwards;
}

/* ==== Form Elements ==== */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.input-group label {
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--text-light, #666);
    font-family: 'Cairo', sans-serif;
    animation: fadeInLeft 2s ease forwards;
}

.input-group input {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    background: var(--input-bg, #fff);
    color: var(--primary-color);
    transition: border 0.3s, background 0.3s;
    font-family: 'Cairo', sans-serif;
}

.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 0;
    border: none;
    width: 100%;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    font-family: 'Cairo', sans-serif;
}

.submit-btn:hover {
    background: var(--primary-dark, #0284c7);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ==== Animations ==== */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}