/* 1. إعدادات الألوان الأساسية */
:root {
    --primary-blue: #1e3a8a;
    --accent-blue: #2563eb;
    --text-dark: #0f172a;
    --text-label: #334155;
}

/* 2. الخط العادي الافتراضي والصفحة النظيفة */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    font-family: system-ui, -apple-system, sans-serif;
    overflow: hidden;
}

.app-container {
    max-width: 480px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

/* 3. تنسيق الهيدر واللوجو باليمين وبأبعاد مضبوطة عشان ما يختفيش */
.brand-header-row {
    width: 100%;
    padding: 15px 20px 10px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
}

.header-logos {
    display: flex;
    justify-content: flex-end;
}

.logo-item {
    width: 80px;
    height: auto;
    max-height: 45px;
    object-fit: contain;
    display: block;
}

/* 4. تصميم الغلاف الممتد ملء الشاشة على الجناب (Full Width) وبدون سحف أو حواف */
.register-full-cover-banner {
    width: 100%; /* ملء الشاشة بالكامل على الجناب */
    position: relative;
    height: 24vh; /* يمثل ربع الشاشة ممتاز للـ Cover */
    overflow: hidden;
    margin-bottom: 25px;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* طبقة مدمجة ذكية للكتابة فوق الصورة مباشرة بدون برواز وبخط عريض */
.text-on-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* تظليل خفيف جداً خلف النص ليكون مقروء بوضوح وفخامة */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 15px;
    box-sizing: border-box;
}

.bold-main-title {
    margin: 0 0 5px 0;
    font-size: 26px; /* خط عريض وكبير جداً */
    color: #ffffff;  /* لون أبيض ناصع فوق الصورة */
    font-weight: 900; /* أقصى درجات العرض للخط */
    text-shadow: 0 2px 4px rgba(0,0,0,0.4); /* ظل خفيف لحماية وضوح الكلمة */
}

.bold-sub-title {
    margin: 0;
    font-size: 14px;
    color: #e2e8f0;  /* لون فاتح متناسق */
    font-weight: 700; /* خط عريض للعنوان الفرعي */
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* 5. حاوية النموذج المفرغة النظيفة */
.clean-register-form {
    padding: 0 20px;
    box-sizing: border-box;
}

.form-fields-transparent-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.custom-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.custom-input-group label {
    font-size: 13px;
    color: var(--text-label);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-input-group label i {
    color: var(--primary-blue);
}

/* الحقول المفرغة بدون خلفية وبحواف زرقاء كحلية */
.form-input {
    width: 100%;
    background: transparent !important;
    border: 1.5px solid var(--primary-blue);
    padding: 12px;
    border-radius: 10px;
    color: var(--primary-blue);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

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

.form-input:focus {
    border-color: var(--accent-blue);
}

/* غلاف الهاتف المفرغ */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    background: transparent !important;
    border: 1.5px solid var(--primary-blue);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.phone-input-wrapper .form-input {
    border: none;
}

.country-code {
    background: transparent;
    color: var(--primary-blue);
    padding: 0 14px;
    font-size: 14px;
    font-weight: bold;
    height: 42px;
    display: flex;
    align-items: center;
    border-left: 1.5px solid var(--primary-blue);
    direction: ltr;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.toggle-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    cursor: pointer;
    font-size: 14px;
    z-index: 5;
}

/* زر الإرسال الأزرق الفخم */
.submit-action-btn {
    width: 100%;
    background: var(--accent-blue);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.submit-action-btn:active {
    background: var(--primary-blue);
}

.login-redirect-link {
    text-align: center;
    font-size: 13px;
    margin: 25px 0 10px 0;
}

.login-redirect-link span {
    color: #64748b;
}

.login-redirect-link a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: bold;
    margin-right: 5px;
}
