@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'IranSans', sans-serif;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #222;
}

.container {
    width: 800px;
    height: 500px;
    background-color: #013a4a;
    border-radius: 10px;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    display: flex;
    transition: height 0.5s ease;
}

.form-section {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
    position: absolute;
}

.sign-in-section {
    left: 0; /* Keep sign-in on the left */
    transform: translateX(0);
}

.sign-up-section {
    right: 0; /* Keep sign-up on the right */
    transform: translateX(100%);
}

.welcome-section {
    margin: 0;
    color: #fff;
    text-align: center;
    position: absolute;
    right: 17.7%;
    top: 50%;
    transform: translateY(-50%);
    transition: right 0.5s ease;
}

.toggle-btn {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #00495d;
    color: #FFD700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.toggle-btn:hover {
    background-color: #FFD700;
    color: #00495d;
}

h2 {
    color: #FFD700;
    margin: 0 0 20px;
    font-weight: 700;
}

p {
    color: #FFD700;
}

label {
    font-size: 14px;
    color: #FFD700;
    margin-top: 10px;
    display: block;
}

input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    box-shadow: 0 0 8px 1px #00829c;
    border: 0;
    border-radius: 5px;
    margin-bottom: 15px;
    outline: none;
}

.sign-in-btn, .sign-up-btn {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #00495d;
    color: #FFD700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.sign-in-btn:hover, .sign-up-btn:hover {
    background-color: #FFD700;
    color: #00495d;
}

.options {
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #FFD700;
}

.options a {
    text-decoration: none;
    margin: 0 auto;
    color: #FFD700;
}

.options a:hover {
    color: #bfa300;
}

@media (max-width: 600px) {
	.container {
        width: 100%;
        height: 480px;
    }

    .welcome-section {
        right: 11%;
        font-size: 10px;
    }

    .form-section {
        width: 70%;
    }

    .options {
        width: 100%;
        display: block;
        justify-content: center;
        text-align: center;
    }

    .options label {
        font-size: 15px;
    }

    .terms {
        position: absolute;
        font-size: 12px !important;
    }    
}