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

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

body {
    background: linear-gradient(to right, #FAF7F3, #F0E4D3);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    transition: background 0.6s ease-in-out;
    animation: bodyFadeIn 1s ease-out;
}

@keyframes bodyFadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* ====== Flash Animation for SignIn/SignUp ====== */
body.flash-signin {
    background: linear-gradient(to right, #DCC5B2, #D9A299);
}

body.flash-signup {
    background: linear-gradient(to right, #FFD6BA, #FAF7F3);
}

/* ====== Container ====== */
.container {
    background-color: #FAF7F3;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    width: 800px;
    max-width: 100%;
    min-height: 450px;
    animation: containerSlideUp 0.8s ease-out;
    transition: transform 0.5s ease-in-out;
}

.container.active {
    transform: rotateY(10deg) scale(1.02);
}

@keyframes containerSlideUp {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ====== Text Elements ====== */
.container p,
.container span {
    color: #5c4033;
}

.container p {
    font-size: 14px;
    margin: 20px 0;
}

.container span {
    font-size: 12px;
}

/* ====== Links ====== */
.container a {
    color: #D9A299;
    font-size: 13px;
    text-decoration: none;
    margin: 15px 0 10px;
    transition: 0.3s;
}

.container a:hover {
    color: #B97D6F;
}

/* ====== Buttons ====== */
.container button {
    background: linear-gradient(45deg, #DCC5B2, #D9A299);
    color: #fff;
    font-size: 13px;
    padding: 12px 45px;
    border: none;
    border-radius: 50px; /* شكل دائري */
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.container button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.5s ease-out;
}

.container button:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.container button:hover {
    background: linear-gradient(45deg, #D9A299, #DCC5B2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.container button.hidden {
    background-color: transparent;
    border: 2px solid #DCC5B2;
    color: #5c4033;
}

/* ====== Forms ====== */
.container form {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.container.active form {
    transform: scale(1.05);
}

.container input {
    background-color: #F0E4D3;
    border: none;
    margin: 8px 0;
    padding: 12px 15px;
    font-size: 13px;
    border-radius: 30px;
    width: 100%;
    outline: none;
    color: #5c4033;
    transition: 0.3s;
}

.container input::placeholder {
    color: #7A6A5F;
}

.container input:focus {
    background-color: #DCC5B2;
    box-shadow: 0 0 5px rgba(217, 162, 153, 0.5);
}

/* ====== Form Containers ====== */
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in {
    left: 0;
    width: 50%;
    z-index: 2;
}

.sign-up {
    left: 50%;
    width: 50%;
    opacity: 0;
    z-index: 1;
    transform: translateX(100%);
}

.container.active .sign-in {
    transform: translateX(-100%);
    opacity: 0;
}

.container.active .sign-up {
    transform: translateX(0);
    opacity: 1;
    z-index: 5;
    animation: fadeSlide 0.6s ease-in-out;
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateX(50%) scale(0.95); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* ====== Social Icons ====== */
.social-icons {
    margin: 20px 0;
}

.social-icons a {
    border: 1px solid #DCC5B2;
    border-radius: 50%; /* دائرة */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    color: #5c4033;
    font-size: 16px;
    transition: 0.3s;
}

.social-icons a:hover {
    background-color: #DCC5B2;
    color: #fff;
    transform: scale(1.1) rotate(10deg);
}

/* ====== Toggle Panels ====== */
.toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: all 0.6s ease-in-out;
    z-index: 1000;
}

.container.active .toggle-container {
    transform: translateX(-100%);
}

.toggle {
    background: linear-gradient(to right, #DCC5B2, #D9A299);
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transition: all 0.6s ease-in-out;
}

.container.active .toggle {
    transform: translateX(50%);
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    top: 0;
    transition: all 0.6s ease-in-out;
}

.toggle-left {
    transform: translateX(-200%);
}

.container.active .toggle-left {
    transform: translateX(0);
}

.toggle-right {
    right: 0;
    transform: translateX(0);
}

.container.active .toggle-right {
    transform: translateX(200%);
}




