@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #ff1726;
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --error-color: #ff3b30;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    background-color: #ffffff;
}

.image-container {
    width: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.image-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    animation: ripple 15s linear infinite;
}

@keyframes ripple {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50%, 50%); }
}

.main-logo {
    width: 80%;
    max-width: 300px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.sign-in-container {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-container h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 28px;
    text-align: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}


.logo-container .logo-coca-bottle {
    margin: 0;
    max-width: 75%;
    height: auto;
    transition: transform 0.3s ease;
}
.logo-container .logo-arab {
    margin: -14px 0;
    max-width: 30%;
    height: auto;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.1);
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--secondary-color);
}

input:focus {
    border-color:rgba(51, 49, 49, 0.1) ;
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 60, 60, 0.1);
}

input::placeholder {
    color: #999;
}

.input-group.error input {
    border-color: var(--error-color);
}

button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

button:hover {
    background-color: #e61522;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    text-align: center;
    display: block;
}

a:hover {
    color: #e61522;
}

#password-error {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
    display: none;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.social-icons i {
    font-size: 24px;
    margin: 0 10px;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-icons i:hover {
    transform: scale(1.2);
}

@media only screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .image-container,
    .sign-in-container {
        width: 100%;
    }

    .image-container {
        height: 16vh;
        min-height: 120px;
    }

    .sign-in-container {
        padding: 20px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .form-container {
        max-width: 100%;
    }

    .main-logo {
        max-width: 200px;
    }
    .logo-container {
        flex-direction: column;
        align-items: center;
    }
    .logo-container .logo-coca-bottle {
        margin: 0;
        max-width: 75%;
        height: auto;
    }
    .logo-container .logo-arab {
        margin: -14px 0;
        max-width: 30%;
        height: auto;
    }
    

    .form-container h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    input, button {
        font-size: 16px;
        padding: 12px 12px 12px 40px;
    }

    .input-group {
        margin-bottom: 20px;
    }

    .social-icons {
        margin-top: 15px;
    }

    .social-icons i {
        font-size: 20px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}