:root {
    /* Valentine's Day Gradient Colors */
    --primary-gradient-start: #ff3366;
    --primary-gradient-end: #ff6b6b;
    --secondary-gradient-start: #ff4d6d;
    --secondary-gradient-end: #ff8a8a;
    
    /* UI Colors */
    --primary-color: #ff4d6d;
    --primary-hover: #ff3355;
    --secondary-color: #ff8a8a;
    --secondary-hover: #ff6b6b;
    --accent-color: #ffe6e6;
    
    /* Neutral Colors */
    --white: #ffffff;
    --light-bg: #fff5f5;
    --border-color: #ffd9d9;
    --text-dark: #4a2c2c;
    --text-medium: #6b4a4a;
    --text-light: #8b6b6b;
    --text-muted: #a38888;
    
    /* Status Colors */
    --success-color: #ff6b6b;
    --error-color: #ff3366;
    --warning-color: #ffb347;
    --info-color: #ff8585;
    
    /* Shadows */
    --shadow-light: 0 4px 12px rgba(255, 77, 109, 0.15);
    --shadow-medium: 0 7px 14px rgba(255, 77, 109, 0.25);
    --shadow-heavy: 0 15px 30px rgba(255, 51, 102, 0.25);
    
    /* Border Radius */
    --radius-small: 5px;
    --radius-medium: 8px;
    --radius-large: 10px;
    --radius-xl: 20px;
    --radius-circle: 50%;
    
    /* Spacing */
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 30px;
    --space-xl: 40px;
    --space-xxl: 50px;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.9rem;
    --text-base: 1rem;
    --text-md: 1.1rem;
    --text-lg: 1.2rem;
    --text-xl: 1.3rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.8rem;
    --text-4xl: 2.2rem;
    --text-5xl: 2.8rem;
    
    /* Z-index layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-alert: 1000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-md);
}

.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    min-height: 700px;
}

.welcome-section {
    flex: 1;
    background: linear-gradient(135deg, var(--secondary-gradient-start) 0%, var(--secondary-gradient-end) 100%);
    color: var(--white);
    padding: var(--space-xxl) var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '❤️';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    top: -50px;
    right: -50px;
    transform: rotate(15deg);
}

.welcome-section::after {
    content: '❤️';
    position: absolute;
    font-size: 150px;
    opacity: 0.1;
    bottom: -30px;
    left: -30px;
    transform: rotate(-15deg);
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
    z-index: var(--z-sticky);
}

.logo-icon {
    font-size: var(--text-5xl);
    margin-right: var(--space-lg);
    color: var(--accent-color);
}

.logo-text h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text p {
    font-size: var(--text-base);
    opacity: 0.9;
    margin-top: var(--space-xs);
}

.welcome-content {
    z-index: var(--z-sticky);
    margin-top: var(--space-md);
}

.welcome-content h2 {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.welcome-content p {
    font-size: var(--text-lg);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.features {
    list-style: none;
    margin-top: var(--space-lg);
}

.features li {
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    font-size: var(--text-md);
}

.features i {
    margin-right: var(--space-lg);
    font-size: var(--text-xl);
    color: var(--accent-color);
}

.auth-section {
    flex: 1;
    padding: var(--space-xxl) var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-tabs {
    display: flex;
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: var(--space-lg) 0;
    font-size: var(--text-xl);
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab.active {
    color: var(--primary-color);
}

.auth-tab.active::after {
    content: '❤️';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: var(--primary-color);
}

.auth-form-container {
    position: relative;
    overflow: hidden;
}

.auth-form {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-title {
    font-size: var(--text-3xl);
    color: var(--text-dark);
    margin-bottom: var(--space-lg);
    font-weight: 600;
}

.form-title::before {
    content: '❤️ ';
    color: var(--primary-color);
}

.form-group {
    margin-bottom: var(--space-lg);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-medium);
    font-size: var(--text-base);
}

.form-control {
    width: 100%;
    padding: var(--space-lg) var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-large);
    font-size: var(--text-base);
    transition: all 0.3s ease;
    background-color: var(--light-bg);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 42px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: var(--text-lg);
}

.password-toggle:hover {
    color: var(--primary-color);
}

.btn {
    display: block;
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: var(--radius-large);
    font-size: var(--text-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--space-sm);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '❤️';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0;
    transition: left 0.3s ease, opacity 0.3s ease;
}

.btn:hover::before {
    left: 20px;
    opacity: 0.5;
}

.btn:hover {
    background: linear-gradient(to right, var(--primary-hover), var(--secondary-hover));
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    margin-right: var(--space-sm);
}

.form-footer {
    text-align: center;
    margin-top: var(--space-lg);
    color: var(--text-light);
    font-size: var(--text-sm);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.form-footer a::after {
    content: '❤️';
    font-size: 12px;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: bottom 0.3s ease, opacity 0.3s ease;
}

.form-footer a:hover::after {
    bottom: -20px;
    opacity: 1;
}

.form-footer a:hover {
    text-decoration: underline;
}

.alert-container {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    z-index: var(--z-alert);
}

.custom-alert {
    padding: var(--space-lg) var(--space-md);
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-medium);
    color: var(--white);
    font-weight: 600;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.custom-alert::before {
    content: '❤️';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.3;
}

.custom-alert.success {
    background-color: var(--success-color);
}

.custom-alert.error {
    background-color: var(--error-color);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.loader {
    display: none;
    justify-content: center;
    align-items: center;
    padding: var(--space-md);
}

.loader i {
    font-size: var(--text-4xl);
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.phone-input-group {
    display: flex;
}

.phone-input-group select {
    flex: 0 0 100px;
    margin-right: var(--space-sm);
    padding: var(--space-lg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-large);
    font-size: var(--text-base);
    background-color: var(--light-bg);
}

.phone-input-group input {
    flex: 1;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--border-color), var(--primary-color), var(--border-color));
    z-index: 0;
}

.progress-bar span {
    width: 35px;
    height: 35px;
    border-radius: var(--radius-circle);
    background-color: var(--white);
    border: 3px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.progress-bar span.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-lg);
}

.step-btn {
    padding: var(--space-sm) 25px;
    background-color: var(--light-bg);
    border: none;
    border-radius: var(--radius-medium);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-btn:hover {
    background-color: var(--border-color);
    color: var(--primary-color);
}

.step-btn.next {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.step-btn.next:hover {
    background: linear-gradient(to right, var(--primary-hover), var(--secondary-hover));
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        max-width: 600px;
    }
    
    .welcome-section, .auth-section {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .welcome-content h2 {
        font-size: var(--text-4xl);
    }
}

@media (max-width: 576px) {
    body {
        padding: var(--space-sm);
    }
    
    .container {
        border-radius: 15px;
    }
    
    .welcome-section, .auth-section {
        padding: var(--space-lg) var(--space-md);
    }
    
    .logo-text h1 {
        font-size: var(--text-3xl);
    }
    
    .welcome-content h2 {
        font-size: var(--text-3xl);
    }
    
    .auth-tab {
        font-size: var(--text-md);
        padding: var(--space-md) 0;
    }
    
    .form-title {
        font-size: var(--text-2xl);
    }
    
    .phone-input-group select {
        flex: 0 0 80px;
    }
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
    z-index: var(--z-sticky);
}

.logo-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-large);
    margin-right: var(--space-lg);
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: var(--shadow-light);
}

.logo-icon {
    font-size: var(--text-5xl);
    margin-right: var(--space-lg);
    color: var(--accent-color);
}

.logo-text h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--white);
}

.logo-text p {
    font-size: var(--text-base);
    opacity: 0.9;
    margin-top: var(--space-xs);
    color: var(--accent-color);
}

/* Responsive adjustments for logo */
@media (max-width: 576px) {
    .logo-image {
        width: 60px;
        height: 60px;
        margin-right: var(--space-md);
    }
    
    .logo-text h1 {
        font-size: var(--text-3xl);
    }
}