:root {
    --primary: #333333; /* Dark gray */
    --primary-hover: #1a1a1a; /* Even darker */
    --accent: #d4a373; /* Warm, creamy beige/gold */
    --accent-hover: #faedcd; /* Lighter beige */
    --text-main: #2b2b2b;
    --text-muted: #737373;
    --bg-main: #fcfbf8; /* Creamy off-white base */
    --bg-secondary: #fefdfa;
    --border: #e6e4dc; /* Warm border */
    --border-focus: #d4a373;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Layout */
.split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Hero Section (Left) */
.hero-section {
    flex: 1;
    background: linear-gradient(135deg, #fefdfa 0%, #f4eee0 100%);
    position: relative;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-main);
    overflow: hidden;
}

/* Decorative background blur */
.hero-overlay {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
    z-index: 0;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    margin-bottom: auto; /* Pushes content down */
    margin-top: 2rem;
    color: var(--primary);
}

.hero-text {
    margin: 4rem 0;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-text p {
    font-size: 1.125rem;
    color: #525252;
    line-height: 1.6;
}

.testimonial {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(212, 163, 115, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-top: auto; /* Pushes testimonial down */
    margin-bottom: 2rem;
}

.stars {
    color: #fbbf24;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.quote {
    font-size: 1rem;
    font-style: italic;
    color: #333333;
    margin-bottom: 1.25rem;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
}

.author-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.author-info span {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Form Section (Right) */
.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-main);
    max-width: 600px;
    width: 100%;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease-out;
}

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

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Social Button */
.btn-social {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-social:hover {
    background: var(--bg-secondary);
    border-color: #cbd5e1;
}

.btn-social:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider span {
    padding: 0 1rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #334155;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    transition: all 0.2s ease;
    background: #fff;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:hover {
    border-color: #cbd5e1;
}

.form-group input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.1);
}

.password-input {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.btn-toggle-password:hover {
    color: #475569;
}

.btn-toggle-password:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
    border-radius: 4px;
}

.password-strength {
    display: none; /* Hide for sign in */
}

/* Submit Button */
.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive Variables */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }
    
    .hero-section {
        flex: none;
        padding: 2.5rem 1.5rem;
        min-height: auto;
    }
    
    .logo {
        margin-top: 0;
        margin-bottom: 2rem;
    }
    
    .hero-text {
        margin: 0 0 2rem 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .testimonial {
        margin-bottom: 0;
        margin-top: 0;
    }
    
    .form-section {
        max-width: 100%;
        padding: 2.5rem 1.5rem;
        align-items: flex-start;
    }
    
    .form-wrapper {
        margin: 0 auto;
    }
}
