
:root {
    --primary-color: #4a5568;
    --secondary-color: #718096;
    --accent-color: #667eea;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --border-radius: 15px;
    --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background: linear-gradient(1deg,rgba(43, 43, 3, 1) 25%, rgba(0, 0, 0, 1) 65%, rgba(0, 0, 0, 1) 100%);
;
        min-height: 100vh;

    justify-content: center;
    align-items: center;
    padding: 20px;
    direction: rtl;
}
.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.logo-banner{
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: center;
}

.nav-logo p {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.form-box {
    top:50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    min-height: 600px;
}

.login-container, .register-container {
    padding: 30px;
    width: 100%;
    position: absolute;
    top: 0;
    transition: all 0.5s ease;
}

.login-container {
    transform: translateX(0);
}

.register-container {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.register-container.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

.login-container.hidden {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.top {
    text-align: center;
    margin-bottom: 25px;
}

.top span {
    color:#ffffff;
    font-size: 0.9rem;
}

.top a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.top a:hover {
    text-decoration: underline;
}

.input-box {
    position: relative;
    margin-bottom: 20px;
}

.input-field {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light-bg);
    color:#333;
}


.input-field:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.input-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color:#333;
    padding:15px;
}

.two-forms {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.two-forms .input-box {
    flex: 1;
    min-width: 140px;
}

.two-col {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.one, .two {
    display: flex;
    align-items: center;
    gap: 8px;
}

.two-col label {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.two-col a {
    color: #ffffff;
    text-decoration: none;
}

.two-col a:hover {
    text-decoration: underline;
}

.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: #333;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-weight: 500;
}

.google-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-icon {
    width: 20px;
    height: 20px;
    margin-left: 10px;
}

#strengthText {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
}

.text-danger { color: #e53e3e; }
.text-warning { color: #dd6b20; }
.text-success { color: #38a169; }

/* Preloader styles */
        #loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color:white;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }
        
        .dots-loader {
            display: flex;
            gap: 15px;
        }
        
        .dots-loader span {
            width: 20px;
            height: 20px;
            background-color: #9c9e98;
            border-radius: 50%;
            animation: blink 1.4s infinite ease-in-out both;
        }
        
        .dots-loader span:nth-child(2) {
            animation-delay: 0.2s;
        }
        
        .dots-loader span:nth-child(3) {
            animation-delay: 0.4s;
        }
        
        @keyframes blink {
            0%, 80%, 100% {
                opacity: 0;
                transform: scale(0.8);
            }
            40% {
                opacity: 1;
                transform: scale(1.2);
            }
        }

/* Responsive styles */
@media (max-width: 1024px) {
    .form-box {
        max-width: 90%;
    }

    .nav-logo p {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .form-box {
        max-width: 95%;
        min-height: 500px;
        height:500px;
    }

    .login-container, .register-container {
        padding: 20px;
    }

    .two-forms {
        gap: 8px;
    }

    .two-forms .input-box {
        min-width: 110px;
    }

    .nav-logo p {
        font-size: 1.5rem;
    }

    .input-field {
        padding: 12px 40px 12px 12px;
        font-size: 0.95rem;
    }

    .submit {
        padding: 12px;
        font-size: 1rem;
    }

    .google-btn {
        padding: 10px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .form-box {
        max-width: 100%;
        min-height: 450px;
    }

    .login-container, .register-container {
        padding: 15px;
    }

    .top {
        margin-bottom: 15px;
    }

    .input-box {
        margin-bottom: 15px;
    }

    .two-forms {
        gap: 6px;
    }

    .two-forms .input-box {
        min-width: 90px;
    }

    .two-col {
        align-items: space-between;
        gap: 35px;
    }

    .google-btn {
        font-size: 0.9rem;
        padding: 10px;
    }

    .nav-logo p {
        font-size: 1.3rem;
    }

    .input-field {
        padding: 10px 35px 10px 10px;
        font-size: 0.9rem;
    }

    .submit {
        padding: 10px;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .form-box {
        min-height: 400px;
    }

    .login-container, .register-container {
        padding: 10px;
    }

    .top {
        margin-bottom: 10px;
    }

    .input-box {
        margin-bottom: 12px;
    }

    .two-forms {
        gap: 4px;
    }

    .two-forms .input-box {
        min-width: 70px;
    }

    .nav-logo p {
        font-size: 1.2rem;
    }

    .input-field {
        padding: 8px 30px 8px 8px;
        font-size: 0.85rem;
    }

    .submit {
        padding: 8px;
        font-size: 0.9rem;
    }

    .google-btn {
        padding: 8px;
        font-size: 0.85rem;
    }
}

/* Error message styles */
.alert {
    padding: 9px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Placeholder color */
.input-field::placeholder {
    color: black;
}