:root {
    --beige: #e6ddd1;
    --light-brown: #8b7055;
    --dark-green: #2a3328;
    --taupe: #c9bfb4;
    --burgundy: #5e2d2d;
    --terracotta: #d19c8c;
    --tan: #c4b18a;
    --sage: #3a4a41;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Old Standard TT', serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--beige);
}

.container {
    position: relative;
    width: 800px;
    height: 600px;
    background-color: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: auto;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.auth-logo {
    width: 30%;
    height: auto;
    margin-bottom: 30px;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }
    
    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: linear-gradient(to right, var(--light-brown), var(--tan));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

.title {
    font-weight: bold;
    margin: 0;
    color: var(--dark-green);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 15px 0 20px;
    color: var(--light-brown);
    font-style: italic;
}

.input-container {
    position: relative;
    width: 100%;
    margin: 8px 0;
}

.input-row {
    display: flex;
    width: 100%;
    gap: 10px;
}


.input-container.phone-input-container {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 14px;
    padding-right: 10px;
    margin-right: 10px;
}

.phone-prefix img {
    width: 20px;
    margin-right: 10px;
}

input {
    background-color: #f5f5f5;
    border: none;
    border-bottom: 1px solid var(--taupe);
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    color: var(--dark-green);
}

input:focus {
    outline: none;
    border-bottom: 1px solid var(--light-brown);
}

.btn {
    /* border-radius: 20px; */
    border: 1px solid var(--sage);
    background-color: var(--sage);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    cursor: pointer;
    margin-top: 15px;
}

.btn:active {
    transform: scale(0.95);
}

.btn:focus {
    outline: none;
}

.ghost {
    background-color: transparent;
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.ghost:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.form-container.sign-up-container {
    overflow-y: auto;
}

.form-container.sign-up-container::-webkit-scrollbar {
    width: 5px;
}

.form-container.sign-up-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.form-container.sign-up-container::-webkit-scrollbar-thumb {
    background: var(--taupe);
}

.error-message, .success-message {
    margin-top: 10px;
    font-size: 0.9rem;
    display: none;
}

.error-message {
    color: var(--burgundy);
}

.success-message {
    color: var(--sage);
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

p {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
}

/* Improved responsive styles */
@media (max-width: 768px) {
    .container {
        width: 90%;
        height: auto;
        min-height: 500px;
        margin: 20px 0;
    }
    
    form {
        padding: 0 20px;
    }
    
    .btn {
        padding: 10px 30px;
    }
}

/* Mobile styles */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    
    .container {
        width: 100%;
        height: auto;
        min-height: 100vh;
        overflow: hidden;
    }
    
    .sign-in-container,
    .sign-up-container {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .overlay-container {
        display: none;
    }
    
    /* New mobile navigation */
    .mobile-nav {
        display: flex;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-color: var(--beige);
        z-index: 1000;
    }
    
    .mobile-nav button {
        flex: 1;
        padding: 15px;
        border: none;
        background-color: var(--sage);
        color: white;
        font-weight: bold;
        cursor: pointer;
    }
    
    .mobile-nav button.active {
        background-color: var(--dark-green);
    }
    
    /* Adjust form containers for mobile */
    .container.right-panel-active .sign-in-container {
        transform: translateX(-100%);
        opacity: 0;
    }
    
    .container.right-panel-active .sign-up-container {
        transform: translateX(0);
    }
    
    /* Adjust form height for mobile */
    form {
        height: 100vh;
        padding: 60px 20px 100px;
        overflow-y: auto;
    }
    
    .input-row {
        flex-direction: column;
        gap: 0;
    }
    
    .auth-logo {
        width: 50%;
        margin-bottom: 20px;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
}