* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e3a5f;
    --primary-light: #2d5a8f;
    --background: #ffffff;
    --surface: #f8f9fa;
    --text-primary: #1e3a5f;
    --text-secondary: #6c757d;
    --border: #e9ecef;
    --shadow: rgba(30, 58, 95, 0.08);
    --success: #28a745;
    --error: #dc3545;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--surface) 0%, #e3e8ef 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.page-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Auth Layout - Two Column Design */
.auth-layout {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.auth-form-section {
    background: var(--background);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
}

.info-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
    color: white;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.info-content h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 12px;
    font-weight: 700;
}

.info-subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.5;
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.info-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s;
}

.info-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature-content h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
}

.info-cta {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.info-cta p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .info-section {
        min-height: auto;
    }

    .info-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        padding: 12px;
    }

    .auth-form-section,
    .info-section {
        padding: 24px;
        border-radius: 16px;
    }

    .info-content h2 {
        font-size: 24px;
    }

    .info-features {
        gap: 16px;
    }

    .feature-icon {
        font-size: 28px;
    }
}

/* Legacy container - keep for backwards compatibility */
.container {
    max-width: 450px;
    width: 100%;
    background: var(--background);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
}

@media (max-width: 480px) {
    .container {
        padding: 30px 24px;
    }
}

.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo h1 {
    color: var(--primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.logo p {
    color: var(--text-secondary);
    font-size: 14px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--surface);
    padding: 4px;
    border-radius: 12px;
}

.tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.tab.active {
    background: var(--background);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-container {
    display: none;
}

.form-container.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    background: var(--background);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.alert.show {
    display: block;
    animation: fadeIn 0.3s;
}

.alert.error {
    background: #fff5f5;
    color: var(--error);
    border: 1px solid var(--error);
}

.alert.success {
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-with-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.alert-message {
    flex: 1;
}

.resend-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.resend-btn:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.resend-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.footer {
    margin-top: 32px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Color Palette */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.selected {
    border-color: #1f2937;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #1f2937;
}
