:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #a1a1aa;
    --input-bg: #18181b;
    /* Zinc 900 */
    --input-border: #27272a;
    /* Zinc 800 */
    --primary-color: #ffffff;
    --primary-text: #000000;
    --accent-purple: #a855f7;

    /* New variables for the submit button */
    --submit-btn-bg: #DDFF51;
    /* The new button color */
    --submit-btn-text: #000000;
    /* Text color for the new button color */

    /* New colors for validation */
    --validation-success: #34d399;
    /* Emerald 400 */
    --validation-error: #f87171;
    /* Red 400 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Left Panel */
.left-panel {
    width: 45%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: radial-gradient(circle at 50% 0%, #a855f7 0%, #7e22ce 25%, #3b0764 50%, #000000 90%);
    border-radius: 30px;
    z-index: -1;
}

.left-content {
    text-align: center;
    max-width: 400px;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.logo-icon {
    width: 20px;
    height: 20px;
    border: 4px solid white;
    border-radius: 50%;
}

.left-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.step {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
}

.step.active {
    background-color: var(--primary-color);
    color: var(--primary-text);
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    margin-right: 12px;
    font-weight: 600;
}

.step.active .step-number {
    background-color: #000;
    color: #fff;
}

.step-text {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Right Panel */
.right-panel {
    margin-left: 45%;
    width: 55%;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    background-color: var(--bg-color);
    overflow-y: auto;
}

.form-container {
    width: 100%;
    max-width: 480px;
}

.form-container h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.social-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.social-btn {
    flex: 1;
    background-color: transparent;
    border: 1px solid var(--input-border);
    color: var(--text-color);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.social-btn:hover {
    background-color: var(--input-bg);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--input-border);
}

.divider span {
    padding: 0 10px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-row .input-group {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e4e4e7;
}

.input-group input {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid transparent;
    color: var(--text-color);
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #52525b;
}

.input-group input::placeholder {
    color: #52525b;
}

/* Email Verification Group */
.input-group.email-verify-group input[type="email"] {
    /* Uses standard input styling */
}

/* SEPARATE VERIFY BUTTON STYLES */
.verify-button-container {
    margin-top: -10px;
    margin-bottom: 20px;
}

.verify-btn {
    width: 100%;
    background-color: var(--submit-btn-bg);
    color: var(--submit-btn-text);

    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.2s, box-shadow 0.2s;

    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);

    display: flex;
    justify-content: center;
    align-items: center;
}

.verify-btn:disabled {
    background-color: #3f3f46;
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.otp-group #otpCode {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
}


/* Password Toggle */
.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
}

/* Validation Styles */
.validation-list {
    margin-top: 10px;
    padding-left: 20px;
}

.validation-list .validation-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    list-style: none;
}

.validation-list .validation-item i {
    margin-right: 8px;
    width: 15px;
    text-align: center;
}

.validation-list .validation-item.valid {
    color: var(--validation-success);
}

.validation-list .validation-item.invalid {
    color: var(--validation-error);
}

.helper-text {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.error-text {
    color: var(--validation-error);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background-color: var(--submit-btn-bg);
    color: var(--submit-btn-text);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 24px;
    transition: opacity 0.2s, background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    opacity: 0.9;
}

/* Style for disabled button */
.submit-btn:disabled {
    background-color: #3f3f46;
    color: #a1a1aa;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
}

.login-prompt {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-prompt a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* --- CONTACT AND COUNTRY INPUTS --- */

/* Contact Number input combining code and number field */
.contact-input-wrapper {
    display: flex;
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.contact-input-wrapper:focus-within {
    border-color: #52525b;
}

.country-code-display {
    padding: 14px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    background-color: #27272a;
    border-right: 1px solid var(--input-border);
    user-select: none;
    display: flex;
    align-items: center;
}

.contact-input-wrapper input {
    flex-grow: 1;
    border: none;
    padding: 14px 16px;
    background-color: transparent;
    border-radius: 0;
}

/* Custom Country Dropdown */
.country-select-group {
    position: relative;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    margin-top: 4px;
    display: none;
}

.country-dropdown.open {
    display: block;
}

.country-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
}

.country-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.flag-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}


/* Responsive */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    /* Left Panel Adjustments */
    .left-panel {
        position: relative;
        width: 100%;
        min-height: 350px;
        top: auto;
        left: auto;
        bottom: auto;
        z-index: 1;
        /* UPDATED: Increased top padding for logo space */
        padding: 60px 20px 40px 20px;
    }

    /* NEW: Add margin to the logo itself for better vertical alignment */
    .left-content .logo {
        margin-top: 10px;
    }

    /* Right Panel Adjustments */
    .right-panel {
        width: 100%;
        margin-left: 0;
        padding: 40px 20px;
        overflow-y: visible;
    }

    .left-content h1 {
        font-size: 2rem;
    }

    .form-container h2 {
        font-size: 1.8rem;
    }

    .social-buttons {
        margin-bottom: 20px;
        flex-direction: column;
        gap: 12px;
    }

    .divider {
        margin-bottom: 20px;
    }

    /* Input Stacking Fixes */
    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 16px;
    }

    .form-row .input-group {
        margin-bottom: 16px;
    }

    .form-row .input-group:last-child {
        margin-bottom: 0;
    }

    /* Ensure Verify button uses full width on mobile */
    .verify-button-container {
        margin-bottom: 20px;
    }
}