/* Brand Colors */
:root {
    --primary: #e8cc6f;
    --primary-dark: #dbb95c;
    --primary-light: #f4df96;
    --secondary: #0a1f44;
    --secondary-light: #152a55;
    --text-main: #333333;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #e8cc6f 0%, #dbb95c 100%);
    --gradient-bg: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--secondary);
}

/* Layout */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

/* Header */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--secondary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: var(--secondary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(232, 204, 111, 0.2);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 204, 111, 0.4);
    color: var(--secondary);
}

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

.btn-outline-custom {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-custom:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.3);
}

/* Cards */
.custom-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--secondary);
}

.form-control-custom {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 204, 111, 0.15);
    outline: none;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    z-index: 10;
}

.input-with-icon {
    padding-left: 2.75rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Utilities */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

/* Stats Section */
.stats-section {
    position: relative;
    background-image: url('/new_design/img/stats_bg.png');
    /* Default fallback */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5rem 0;
    color: white;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 31, 68, 0.9);
    /* Dark blue overlay */
    z-index: 1;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stats__number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats__text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.block__title--big {
    color: var(--primary) !important;
    font-weight: 800;
    margin-bottom: 1rem;
}

.block__paragraph--big {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* RTL Support */
[dir="rtl"] body {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .input-icon {
    left: auto;
    right: 1rem;
}

[dir="rtl"] .input-with-icon {
    padding-left: 1rem;
    padding-right: 2.75rem;
}

[dir="rtl"] .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

[dir="rtl"] .ms-3 {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

[dir="rtl"] .me-1 {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

[dir="rtl"] .border-end {
    border-right: none !important;
    border-left: 1px solid #dee2e6 !important;
}

[dir="rtl"] .position-absolute.end-0 {
    right: auto !important;
    left: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .custom-card {
        padding: 1.5rem;
    }
}