* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}
.link-color {
    color: #1c7c54 !important;
}
body {
    background-color: #f6f6f6;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
    direction: rtl;
    position: relative;
    background-color: #f7f7f7;
}

/* --- قسم تسجيل الدخول --- */
.login-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 10;
}

.login-wrapper {
    width: 100%;
    max-width: 520px;
}

.top-brand {
    text-align: center;
    margin-bottom: 28px;
}

.top-brand .logos {
    width: 220px;
    margin-bottom: 18px;
}

.top-brand h3 {
    color: #176543;
    font-size: 21px;
    font-weight: 700;
}

.login-card {
    background: #fff;
    border-radius: 28px;
    padding: 45px;
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
    margin: 0;
    max-width: none;
    z-index: 10;
}
.verification-content {
    text-align: center;
    padding: 40px 20px 55px;
}

.verification-content h2 {
    color: #176543;
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.verification-content p {
    color: #777777;
    font-size: 0.95rem;
    line-height: 1.7;
}

.verification-number {
    color: #1c895d;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
}
.page-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%; /* نفس عرض الجزء الأخضر تقريباً */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.18);
    color: #fff;
    font-size: 12px;
    z-index: 20;
}
/* --- قسم البطاقة (على اليمين متداخل مع القسم الأخضر) --- */
.card-section {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 40px 20px 40px 60px;
    position: relative;
    z-index: 10;
}
.redirect-card {
    background: #fff;
    width: 100%;
    max-width: 520px;
    padding: 55px 45px;
    border-radius: 28px;
    box-shadow: 0 15px 45px rgba(0,0,0,.12);
    margin: 0;
    text-align: center;
    z-index: 10;
}

.d-none {
    display: none !important;
}

.card-title {
    color: #176543;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.card-title-danger {
    color: #FF0000 !important;
}

.card-desc {
    color: #8c8c8c;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* --- أيقونة الساعة الرملية --- */
.icon-container {
    margin-bottom: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hourglass-icon, .verified-icon {
    width: 110px;
    height: 110px;
}

/* --- زر إعادة التوجيه --- */
.btn-redirect {
    width: 100%;
    padding: 14px;
    background-color: #176543;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}
.btn-redirect-danger {
    background-color: #FF0000 !important;
}
.btn-redirect:hover {
    background-color: #114d33;
}

.btn-redirect:active {
    transform: scale(0.99);
}


.card-header {
    text-align: right;
    margin-bottom: 25px;
}

.card-header h1 {
    color: #176543;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-header p {
    color: #8c8c8c;
    font-size: 0.85rem;
    font-weight: 500;
}

.nafath-logo {
    text-align: center;
    margin: 20px 0 30px;
}

.nafath-text {
    color: #119e8e;
    font-size: 6rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
}

.desc {
    text-align: right;
    color: #666666;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: #1c7c54;
    box-shadow: 0 0 0 3px rgba(28, 124, 84, 0.1);
}

.input-group input::placeholder {
    color: #b3b3b3;
}

.input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a3a3a3;
    font-size: 1.1rem;
}

.btn {
    width: 100%;
    padding: 15px;
    background-color: #1c7c54;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-danger {
    background-color: #FF0000 !important;
}


.btn:hover {
    background-color: #145c3e;
}

/* --- الجزء الأخضر الداكن --- */
.green-section {
    flex: 1.6;
    background-color: #033923;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 40px;
}

.green-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(3, 57, 35, 0.35), rgba(3, 57, 35, 0.35)),
        radial-gradient(ellipse at 80% 80%, rgba(32, 190, 120, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse at 20% 20%, rgba(32, 190, 120, 0.12) 0%, transparent 55%);
    z-index: 1;
}

.matrix-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   /*  background-image: repeating-radial-gradient(
        circle at 100% 100%, 
        transparent 0, 
        transparent 8px, 
        rgba(255, 255, 255, 0.05) 9px, 
        transparent 10px
    ); */
    opacity: 0.9;
}

.green-content {
    text-align: center;
    z-index: 2;
    padding: 20px;
    margin-right: 120px; /* زيادة الهامش ليوازن تداخل البطاقة الأعمق */
}

.logo {
    width: 160px;
    height: auto;
}

.green-content h2 {
    color: #8cc63f;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.green-content h3 {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 500;
}

/* --- التجاوب مع الشاشات الصغيرة --- */
@media (max-width: 992px) {
    /* إخفاء الجزء الأخضر بالكامل */
    .green-section {
        display: none !important;
    }

    /* جعل الفورم يأخذ الشاشة كلها */
    .container {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    .login-section {
        width: 100%;
        justify-content: center;
        padding: 40px 20px;
    }

    .login-wrapper {
        width: 100%;
        max-width: 500px;
        margin: auto;
    }

    .login-card, .redirect-card {
        margin: 0 !important;
        max-width: 100%;
    }
    .green-section {
        display: none;
    }
    .page-footer {
        position: static;
        width: 100%;
        margin-top: 30px;
        background: transparent;
        color: #666;
        height: auto;
        padding: 15px 20px;
        text-align: center;
    }
}

