:root {
    --primary: #222;
    --primary-hover: #000;
    --border: #ddd;
    --text-main: #222;
    --text-muted: #666;
    --bg-main: #ffffff;
    --bg-body: #fcfcfc;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --input-focus: #ffeb3b; 
}

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

body {
    background-color: var(--bg-body);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    overflow-y: auto;
}

.shared-bg {
    background: 
        linear-gradient(rgba(250, 250, 250, 0.7), rgba(250, 250, 250, 0.7)),
        url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&q=80&w=1600") center / cover no-repeat !important;
    background-blend-mode: normal;
}

.signup-container {
    display: flex;
    background-color: var(--bg-main);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 950px;
    min-height: 580px;
    max-height: 94vh;
}

.signup-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 2.5rem;
    background: #ffffff;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.signup-left::-webkit-scrollbar {
    width: 6px;
}

.signup-left::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 4px;
}

.form-wrapper {
    width: 100%;
    max-width: 380px;
    margin: auto 0;
    padding: 0.5rem 0;
}

.title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.field-error-text {
    display: none;
    color: #dc2626;
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
    margin-left: 2px;
}

.field-error-text.active {
    display: block;
}

.input-container.has-error {
    border-color: #dc2626;
}

.optional-label {
    font-size: 11px;
    font-weight: normal;
    color: #6b7280;
    margin-left: 4px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.3s;
}

.input-container input {
    width: 100%;
    padding: 9px 15px 9px 35px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background-color: transparent;
}

.input-container:focus-within {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(255, 235, 59, 0.2);
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #888;
    font-size: 13px;
}

.password-container input {
    padding-right: 35px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #222;
}

.btn-login {
    width: 100%;
    margin-top: 8px;
    padding: 11px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-login:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-login:active {
    transform: scale(0.98);
}

.signup-right {
    flex: 1.1;
    position: relative;
    background-image: url('https://res.cloudinary.com/dz7fuqwnr/image/upload/f_auto,q_auto/Gemini_Generated_Image_i7cd2mi7cd2mi7cd_wwxirk');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
    color: white;
    text-align: center;
}

.signup-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    z-index: 1;
}

.right-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.welcome-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    margin: 0;
}

.welcome-desc {
    font-family: inherit;
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-secondary {
    padding: 0.75rem 1.8rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

@media (max-height: 750px) {
    .signup-container {
        max-height: 96vh;
    }

    .signup-left {
        padding: 1.25rem 2rem;
    }

    .form-wrapper {
        margin: 0;
    }

    .title {
        font-size: 1.6rem;
    }

    .subtitle {
        margin-bottom: 0.85rem;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .input-container input {
        padding: 8px 12px 8px 32px;
    }
}

@media (max-width: 850px) {
    .signup-container {
        flex-direction: column;
        height: auto;
        max-height: none;
        overflow-y: visible;
    }
    
    body {
        height: auto;
        overflow: auto;
        padding: 1rem 0.5rem;
    }

    .signup-left {
        padding: 2rem 1.5rem;
        overflow-y: visible;
    }

    .signup-right {
        min-height: 320px;
        flex: none;
    }
}