/* --- الإعدادات العامة --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    height: 100%;
    background-color: #fff;
    overflow-x: hidden;
}

/* --- الحاوية الرئيسية (صورة الروبوت) --- */
.main-screen-container {
    position: relative;
    width: 100%;
    height: 45vh; 
    background: #fff url('IMG_7224.gif') no-repeat center top; 
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* --- التوهج (التسييح) الأخضر والأبيض لدمج الصورة --- */
.main-screen-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; 
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.9) 30%, 
        rgba(0, 128, 0, 0.1) 70%, 
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
}

/* --- الكلمتين اللي في نص الصورة (اللوجو والعنوان) --- */
.header-labels {
    position: absolute;
    top: 55%; 
    left: 20px; 
    z-index: 10;
    text-align: left;
}

.brand-logo-fixed {
    font-size: 26px;
    font-weight: 800;
    color: #000;
}

.page-main-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-top: -5px;
}

/* --- منطقة المحتوى (الحقول والزرار) --- */
.auth-content-area {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 380px;
    margin: -30px auto 0; 
    padding: 20px;
    text-align: center;
}

/* حقول الإدخال البيضاء */
.dark-input-group {
    background-color: #ffffff;
    border: 1px solid #f2f2f2;
    border-radius: 20px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 5px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.dark-input-group input {
    background: transparent;
    border: none;
    color: #000;
    padding: 12px 10px;
    width: 100%;
    font-size: 16px;
    outline: none;
    text-align: right;
}

.prefix-icon {
    color: #000;
    font-weight: bold;
    font-size: 17px;
}

/* تنسيق الكابتشا المودرن */
.captcha-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.captcha-box {
    background: #f8f8f8;
    color: #000;
    border: 1px solid #eee;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 2px;
    flex: 1;
}

/* الزر الأسود بالكامل */
.purple-submit-btn {
    background-color: #000;
    color: #fff;
    border: none;
    width: 100%;
    padding: 18px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* الرابط السفلي */
.bottom-link-footer {
    margin-top: 30px;
    font-size: 15px;
}

.bottom-link-footer a {
    color: #000;
    text-decoration: none;
    font-weight: 800;
    border-bottom: 2px solid #000;
}

/* رسالة الخطأ في النص */
#msg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #000;
    z-index: 9999;
    display: none;
}
