:root {
    --primary-color: #1a73e8; /* Google Blue - Matching index.html */
    --primary-hover: #1557b0;
    --secondary-color: #e8f0fe; /* Light Blue Background */
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --white: #ffffff;
    --error-color: #d93025;
    --success-color: #1e8e3e;
    --input-bg: #f1f3f4;
    --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-md: 0 4px 6px rgba(32, 33, 36, 0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden; /* Prevent scrolling on desktop split view */
}

.split-screen {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Left Panel */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #1a73e8 0%, #4285F4 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(30deg);
    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 32px;
    color: var(--white);
}

.logo-area h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 600;
}

.hero-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 500;
}

.feature-item i {
    font-size: 20px;
    color: #8ab4f8; /* Light blue accent */
}

/* Right Panel */
.right-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    padding: 40px;
    overflow-y: auto;
}

.auth-box {
    width: 100%;
    max-width: 420px;
}

.auth-header {
    margin-bottom: 40px;
    text-align: center;
}

.auth-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 15px;
    position: relative;
    border-radius: 2px;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    cursor: default;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

/* When step 2 is active, fill the line */
.form-step#step-2 ~ .progress-container .progress-fill, /* This selector logic handled by JS class toggling usually, but for simple CSS based on active class: */
.progress-step[data-step="2"].active ~ .progress-line .progress-fill { 
    /* This sibling selector is tricky, we'll handle width in JS */
}

.progress-step span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.progress-step.active span {
    color: var(--primary-color);
}

/* Forms */
.form-step {
    display: none;
    animation: slideUp 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Matching modern standard */
    height: 52px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.input-wrapper input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 16px;
    font-size: 16px;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
}

.input-icon {
    padding-right: 16px;
    color: var(--text-secondary);
    font-size: 18px;
}

/* Phone Input Specifics */
.phone-wrapper {
    padding-left: 12px;
}

.country-select {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
    border-right: 1px solid var(--border-color);
    height: 32px;
}

.country-select img {
    width: 20px;
    border-radius: 2px;
}

.country-select span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.error-msg {
    display: block;
    color: var(--error-color);
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
}

.info-msg {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 6px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    height: 52px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 26px; /* Rounded pill shape like index.html buttons */
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    font-family: 'Google Sans', 'Roboto', sans-serif;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

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

.btn-primary:disabled {
    background-color: #a8c7fa;
    cursor: not-allowed;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-text:hover {
    text-decoration: underline;
}

/* OTP Section */
.otp-header {
    text-align: center;
    margin-bottom: 24px;
}

.otp-header h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.otp-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.otp-input-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#otp-code {
    text-align: center;
    letter-spacing: 8px;
    font-size: 24px;
    font-weight: 600;
    width: 200px;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    padding: 10px;
    background: transparent;
    transition: border-color 0.2s;
}

#otp-code:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Recaptcha */
#recaptcha-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 900px) {
    .left-panel {
        display: none; /* Hide left panel on mobile/tablet */
    }
    
    .right-panel {
        padding: 20px;
        align-items: flex-start;
        padding-top: 40px;
    }

    body {
        overflow-y: auto;
    }

    .auth-box {
        max-width: 100%;
    }

    .auth-header h2 {
        font-size: 24px;
    }
    
    /* Add a mobile header */
    .right-panel::before {
        content: 'Jet Randevu';
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        font-size: 24px;
        color: var(--primary-color);
        position: absolute;
        top: 20px;
        left: 0;
        width: 100%;
    text-align: center;
    display: block;
}

.auth-footer-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}
}
