:root {
    --primary-color: #931a23;
    --secondary-color: #0F2239;
    --primary-hover: #7a1520;
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 30px rgba(15, 34, 57, 0.1);
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
    min-height: 100vh;
    color: var(--secondary-color);
    direction: rtl;
}

.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.auth-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    display: flex;
}

.form-section {
    flex: 1;
    padding: 25px;
    position: relative;
}

.logo-section {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
}

.title-section {
    margin-bottom: 25px;
}

.title-section h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.title-section p {
    color: #6c757d;
    margin-bottom: 16px;
}

.form-floating {
    margin-bottom: 16px;
}

.form-floating > .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: right;
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(147, 26, 35, 0.15);
}

.form-floating > label {
    color: #6c757d;
    font-weight: 500;
    right: 16px;
    left: auto;
}

.password-toggle {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 26, 35, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #6b1419 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 26, 35, 0.4);
}

.btn-outline-secondary {
    border: 2px solid #e9ecef;
    color: #6c757d;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.custom-checkbox {
    accent-color: var(--primary-color);
}

.forgot-password {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.social-login .btn {
    border: 2px solid #e9ecef;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-login .btn:hover {
    background: #f8f9fa;
}

.promotional-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 50%, var(--secondary-color) 100%);
    padding: 25px;
    position: relative;
    overflow: hidden;
    color: white;
    display: none;
}

.support-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.support-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.promo-content {
    position: relative;
    z-index: 10;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}

.hero-image-container {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
}

.questionnaire-title {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.questionnaire-title h2 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.questionnaire-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.copyright-text {
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    padding: 0 20px;
}

.copyright-text p {
    margin: 0;
}

.promo-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.promo-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.promo-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.stats-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-number {
    font-size: 20px;
    font-weight: 700;
}

.stats-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.icon-bg {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px;
}

.success-alert {
    background: linear-gradient(135deg, #d4edda 0%, #c8e6c9 100%);
    border: 1px solid #b5d4c6;
    color: #155724;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

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

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.divider {
    position: relative;
    margin: 24px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.divider-text {
    background: white;
    padding: 0 16px;
    color: #6c757d;
    font-size: 14px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 992px) {
    .promotional-section {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .form-section {
        padding: 20px 15px;
    }
    
    .title-section h1 {
        font-size: 20px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
}
