/* -------------------- إعدادات عامة -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    direction: rtl;
    background: #005A9C; /* اللون الأزرق الداكن الأساسي */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* -------------------- الخلفية المنحنية (Dynamic SVG curves) -------------------- */
.background-curves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800'%3E%3Cpath fill='%23005A9C' fill-opacity='1' d='M0,0 L1440,0 L1440,400 C1200,550 900,300 600,450 C300,600 150,350 0,500 Z'%3E%3C/path%3E%3Cpath fill='%23A4D600' fill-opacity='0.7' d='M0,500 L1440,300 L1440,800 L0,800 Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

/* إضافة منحنى إضافي لتداخل أكثر جمالاً */
.background-curves::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, rgba(164,214,0,0.2) 0%, rgba(164,214,0,0.8) 100%);
    clip-path: polygon(0% 30%, 15% 20%, 30% 35%, 50% 15%, 70% 30%, 85% 10%, 100% 25%, 100% 100%, 0% 100%);
    pointer-events: none;
}

/* -------------------- تنسيق الـ Wrapper الرئيسي -------------------- */
.login-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    margin: 20px auto;
    padding: 20px;
}

/* -------------------- رأس الصفحة (Header) -------------------- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    padding: 20px 0 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area .bank-logo {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bank-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #005A9C;
    background: white;
    padding: 5px 15px;
    border-radius: 40px;
    line-height: 1.3;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bank-name small {
    font-size: 0.7rem;
    font-weight: 500;
    display: inline-block;
}

.color-dots {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding-right: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.yellow { background-color: #FFD700; }
.dot.orange { background-color: #FF8C00; }
.dot.red { background-color: #DC143C; }

/* زر اللغة */
.lang-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 40px;
    padding: 8px 15px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.flag-icon {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

/* -------------------- حاوية النموذج -------------------- */
.form-container {
    background: rgba(0, 90, 156, 0.2); /* خلفية شبه شفافة خفيفة جداً */
    backdrop-filter: blur(2px);
    border-radius: 30px;
    padding: 30px 25px 40px;
    transition: all 0.3s;
}

.hero-word {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: -1px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* -------------------- مجموعات الإدخال (Input Groups) -------------------- */
.input-group {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

.input-icon-right {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 1.1rem;
    pointer-events: none;
}

/* حقل الإدخال الشفاف */
.input-group input {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    padding: 14px 45px 14px 20px;
    font-size: 1rem;
    font-family: inherit;
    color: white;
    outline: none;
    transition: border 0.2s;
}

.input-group input:focus {
    border-color: white;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

/* أيقونة العين (تبديل إظهار كلمة المرور) */
.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 2;
}

.toggle-password:hover {
    color: #A4D600;
}

/* -------------------- صف الأزرار -------------------- */
.actions-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0 25px;
}

.square-buttons {
    display: flex;
    gap: 12px;
}

.square-btn {
    background: transparent;
    border: 1px solid white;
    border-radius: 12px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.square-btn i {
    font-size: 1.6rem;
    color: white;
}

.square-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* زر الدخول الرئيسي */
.submit-btn {
    flex: 1;
    background: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 0 20px;
    height: 58px;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 800;
    color: #005A9C;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn i {
    font-size: 1.2rem;
    color: #005A9C;
    transition: transform 0.2s;
}

.submit-btn:hover {
    background: #F0F0F0;
    transform: scale(1.01);
}

.submit-btn:hover i {
    transform: translateX(4px);
}

/* -------------------- الروابط السفلية -------------------- */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.footer-link {
    color: white;
    text-decoration: underline;
    font-size: 0.85rem;
    font-weight: 500;
    transition: opacity 0.2s;
    text-underline-offset: 3px;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* -------------------- تحسينات للشاشات الصغيرة (Responsive) -------------------- */
@media (max-width: 550px) {
    .login-wrapper {
        padding: 10px;
    }
    .main-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .lang-btn {
        justify-content: center;
    }
    .hero-word {
        font-size: 2.2rem;
    }
    .actions-row {
        flex-wrap: wrap;
    }
    .square-buttons {
        width: 100%;
        justify-content: center;
    }
    .submit-btn {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    .square-btn {
        width: 70px;
        height: 55px;
    }
    .form-container {
        padding: 20px 20px 30px;
    }
}

/* إزالة أي تأثيرات قديمة من الزجاج أو التدرج الأرجواني */
body, .form-container, .background-curves {
    background-image: none; /* إزالة التدرج السابق */
}
.container, .glassmorphism {
    display: none; /* تأكيد إلغاء أي عناصر قديمة */
}