@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    min-width: 1200px; /* Enforce minimum desktop width */
    background: linear-gradient(135deg, #f5f3f0 0%, #e8ddd4 100%);
    position: relative;
    overflow-x: auto; /* Allow horizontal scroll if needed */
}

/* Spa background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(245, 243, 240, 0.9), rgba(232, 221, 212, 0.9)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23d4a574" opacity="0.1"/><circle cx="80" cy="30" r="1.5" fill="%23d4a574" opacity="0.1"/><circle cx="60" cy="70" r="2.5" fill="%23d4a574" opacity="0.1"/><circle cx="30" cy="80" r="1" fill="%23d4a574" opacity="0.1"/></svg>');
    z-index: -1;
}

.main-container {
    display: flex;
    min-height: 100vh;
    min-width: 1200px; /* Enforce minimum desktop width */
}

/* Left Panel - Logo and Branding */
.left-panel {
    flex: 1;
    background: #92a98f; /* Soft green background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.logo-section {
    text-align: center;
    color: white;
    z-index: 1;
    position: relative;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    border-radius: 50%;
    background: #92a98f;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.logo-section h1 {
    font-size: 3.2rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-section span {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.tagline {
    font-size: 1rem;
    letter-spacing: 4px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.welcome-text p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
    font-style: italic;
}

/* Right Panel - Forms */
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    overflow-y: auto; /* Allow scrolling for longer forms */
    min-width: 500px; /* Ensure minimum width for desktop */
}

.form-container {
    width: 100%;
    max-width: 420px; /* Slightly wider for better field spacing */
}

.form-box {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.form-box.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-box h2 {
    font-size: 2.2rem;
    color: #8b6f47;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 400;
}

.form-subtitle {
    text-align: center;
    color: #a0856b;
    margin-bottom: 35px;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 20px; /* Reduced spacing for more fields */
}

input,
select {
    width: 100%;
    padding: 14px 18px; /* Slightly reduced padding */
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(212, 165, 116, 0.2);
    border-radius: 12px;
    font-size: 15px;
    color: #5a4a3a;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

input:focus,
select:focus {
    outline: none;
    border-color: #d4a574;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.1);
    transform: translateY(-2px);
}

input::placeholder {
    color: #a0856b;
}

/* Special styling for date input */
input[type="date"] {
    position: relative;
    color: #5a4a3a;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: #d4a574;
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
}

input[type="date"]:focus::-webkit-calendar-picker-indicator {
    background-color: #c19660;
}

/* Special styling for tel input */
input[type="tel"] {
    letter-spacing: 0.5px;
}

/* Password field styling */
input[type="password"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

input[type="password"]::placeholder {
    font-family: "Poppins", sans-serif;
    letter-spacing: normal;
}

select {
    cursor: pointer;
}

select option {
    background: white;
    color: #5a4a3a;
}

button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #dbfed7 0%, #92a98f 50%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    color: white;
    font-weight: 500;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 244, 243, 0.982);
    letter-spacing: 0.5px;
    margin-top: 10px; /* Add some space above button */
}

button:hover {
    background: linear-gradient(135deg, #dbfed7 0%, #92a98f 50%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 248, 248, 0.982);
}

button:active {
    transform: translateY(0);
}

.form-switch {
    text-align: center;
}

.form-switch p {
    font-size: 14px;
    color: #8b6f47;
    margin: 0;
}

.form-switch a {
    color: #d4a574;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-switch a:hover {
    color: #c19660;
    text-decoration: underline;
}

.error-message {
    padding: 14px 20px;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f1aeb5;
    border-radius: 10px;
    font-size: 14px;
    color: #721c24;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(241, 174, 181, 0.2);
    animation: slideIn 0.3s ease-out;
    line-height: 1.4; /* Better readability for longer error messages */
}

.success-message {
    padding: 14px 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    font-size: 14px;
    color: #155724;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(195, 230, 203, 0.2);
    animation: slideIn 0.3s ease-out;
}

.logout-message {
    padding: 14px 20px;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #bee5eb;
    border-radius: 10px;
    font-size: 14px;
    color: #0c5460;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(190, 229, 235, 0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Additional styling for form validation feedback */
input:invalid {
    border-color: rgba(220, 53, 69, 0.3);
}

input:valid {
    border-color: rgba(40, 167, 69, 0.3);
}

/* Styling for required field indicators */
input:required:focus:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

input:required:focus:valid {
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.1);
}

/* Password strength indicator styling */
.password-strength {
    font-size: 12px;
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.password-strength.weak {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.password-strength.medium {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.password-strength.strong {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}



/* Loading state for forms */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

.form-loading button {
    background: linear-gradient(135deg, #a0856b 0%, #8b6f47 100%);
    cursor: not-allowed;
}

/* Enhanced focus styles for better accessibility */
input:focus-visible,
select:focus-visible,
button:focus-visible {
    outline: 2px solid #d4a574;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
* {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}