* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Additional animation for mobile slide */
.form-slide-animation {
    animation: formSlide 0.6s ease-in-out;
}

@keyframes formSlide {
    0% { transform: translateX(5%); }
    50% { transform: translateX(-2%); }
    100% { transform: translateX(0); }
}

/* body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('https://cdnjs.cloudflare.com/ajax/libs/unsplash-js/7.0.15/photo.jpg'), linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    overflow: hidden;
} */
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    /* min-height: 100vh; */
    background-image: url('https://cdnjs.cloudflare.com/ajax/libs/unsplash-js/7.0.15/photo.jpg'), linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    overflow: hidden;
}
.container {
    position: relative;
    width: 800px;
    height: 600px;
    background: #fff;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-container {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.6s ease-in-out;
    overflow-y: auto;
}

.sign-in-container {
    left: 0;
    z-index: 2;
}

.sign-up-container {
    left: 0;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
    opacity: 0;
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 50px;
    height: 100%;
    width: 100%;
    text-align: center;
}

h1 {
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

p {
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 15px 0 20px;
    color: #666;
    max-width: 100%;
    padding: 0 5px;
}

input, select, textarea {
    background-color: #f4f8f7;
    border: none;
    border-radius: 10px;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

/* Style select element to match other inputs */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

/* Style textarea to match inputs */
textarea {
    min-height: 80px;
    resize: none;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    background-color: #fff;
    box-shadow: 0 0 0 2px #6b63ff;
}

.auth-body button {
    border-radius: 50px;
    border: none;
    background: linear-gradient(90deg, #6b63ff, #4f46e5);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 14px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 60%;
  }
  
.auth-body button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(107, 99, 255, 0.3);
}

.auth-body button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(107, 99, 255, 0.3);
}

.social-container {
    margin: 20px 0;
}

.social-container a {
    border: 1px solid #ddd;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.social-container a:hover {
    background-color: #f4f8f7;
    transform: translateY(-2px);
}

a {
    color: #6b63ff;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
    transition: all 0.3s ease;
}

a:hover {
    color: #4f46e5;
}

.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 {
    position: relative;
    background: linear-gradient(to right, #6b63ff, #8c84ff);
    background-image: url('/api/placeholder/400/320'), linear-gradient(to right, #6b63ff, #8c84ff);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: #fff;
    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 30px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
    overflow: hidden;
}

.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%);
}

.button-ghost {
    background: transparent;
    border: 2px solid #fff;
    background-color: transparent;
    background-image: none;
}

.button-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.form-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-message {
    color: #ff4b4b;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

.success-message {
    color: #4BB543;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.password-strength {
    width: 100%;
    height: 4px;
    background: #ddd;
    margin-top: 5px;
    border-radius: 5px;
    position: relative;
}

.password-strength-meter {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0;
}

.remember-me {
    display: flex;
    align-items: center;
    margin: 15px 0;
    width: 100%;
}

.remember-me input {
    width: auto;
    margin-right: 10px;
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 5px;
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    color: #999;
    cursor: pointer;
}

/* Optimized compact form styles */
.compact-title {
    margin-bottom: 10px;
    font-size: 20px;
}

/* Row arrangement */
.form-row {
    display: flex;
    width: 100%;
    gap: 8px;
    margin-bottom: 0;
}

.half {
    flex: 0 0 calc(50% - 4px);
}

/* Form element optimization */
.sign-up-container form {
    padding: 20px;
    /* justify-content: flex-start; */
    justify-content: space-between;

    overflow-y: auto;
    height: 100%;
}

/* Compact form elements */
.sign-up-container input,
.sign-up-container select,
.sign-up-container textarea {
    padding: 10px 12px;
    margin: 5px 0;
    font-size: 13px;
}

/* Fixed height for select to match other inputs */
.sign-up-container select {
    height: 40px;
}

/* Make textarea better proportioned */
.sign-up-container textarea {
    height: 60px;
    min-height: 60px;
    max-height: 80px;
}

/* Compact groups */
.input-group.compact {
    margin-bottom: 4px;
}

/* Password strength meter */
.password-strength.mini {
    height: 3px;
    margin-top: 3px;
}

/* Compact error display */
.mini-errors {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 10px;
    margin: 5px 0;
    background-color: rgba(255, 75, 75, 0.1);
    border: 1px solid #ff4b4b;
    border-radius: 6px;
    font-size: 12px;
    color: #ff4b4b;
}

.error-icon {
    margin-right: 5px;
    font-size: 12px;
}

.error-text {
    flex: 1;
    text-align: left;
}

/* Compact button */
.compact-button {
    padding: 10px 30px;
    margin-top: 10px;
    width: auto;
    min-width: 140px;
}

/* Compact toggle */
.mini-toggle {
    margin-top: 5px;
    font-size: 12px;
}

.mini-toggle a {
    margin: 5px 0;
}

/* Error styles */
.has-error input, 
.has-error select, 
.has-error textarea {
    border: 1px solid #ff4b4b;
    color: #ff4b4b;
}

.has-error input::placeholder,
.has-error textarea::placeholder {
    color: #ff4b4b;
    font-size: 11px;
}

.error-placeholder {
    color: #ff4b4b;
}

.tiny-error {
    color: #ff4b4b;
    font-size: 10px;
    margin-top: -5px;
    margin-bottom: 2px;
    text-align: left;
}

/* Auth specific styles */
.auth-body {
    background-color: #f4f4f4;
    padding-top: 60px; /* Same as regular body padding-top */
}

.auth-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 15px;
}
/* Simple mobile fixes - add this at the end of your CSS */
@media (max-width: 768px) {
    /* Fix body scrolling */
    body {
        overflow-y: auto;
    }
    
    /* Fix container sizing */
    .container {
        /* width: 100%; */
        max-width: 400px;
        height: auto !important; /* Force override any height settings */
    }
    .auth-container{

    }
    /* Make form containers full width */
    .form-container {
        width: 100%;
        position: relative !important; /* Change from absolute to relative */
        height: auto !important; /* Let it expand to content */
    }
    
    /* Make form content visible */
    .sign-up-container, 
    .sign-in-container {
        position: relative !important;
        height: auto !important;
        min-height: 650px;
        overflow-y: visible;
    }
    
    /* Hide overlay on mobile */
    .overlay-container {
        display: none;
    }
    
    /* Stack form rows */
    .form-row {
        flex-direction: column;
    }
    
    .half {
        width: 100%;
    }
    
    /* Mobile panel toggling */
    .container.right-panel-active .sign-in-container {
        display: none !important;
    }
    
    .container.right-panel-active .sign-up-container {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .sign-up-container {
        display: none;
    }
    
    /* Button width */
    .auth-body button {
        width: 80%;
    }
}
