﻿
/* تثبيت موضع الصندوق إلى اليمين دائماً */
.login-row {
    justify-content: flex-end !important;
}

/* تثبيت موضع الحاوية دومًا إلى اليمين */
.login-row {
    justify-content: flex-end !important;
}

/* --------- خلفية login-bg --------- */


.login-bg {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding-right: 60px;
    background: url('/New2025/img/bg_nafaz.png') no-repeat center top/cover;
}

/* --------- تصميم login-center --------- */
.login-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 483px;
    /*padding: 60px;*/
    padding: 50px;
    gap: 20px;
    border-radius: 20px;
    background: #FFF;
    box-shadow: -25px 0 50px rgba(0, 0, 0, 0.05);
}

/* --------- تصميم confirm-center --------- */
.confirm-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 483px;
    padding: 60px;
    gap: 60px;
    border-radius: 20px;
    background: #FFF;
    box-shadow: -25px 0 50px rgba(0, 0, 0, 0.05);
}

/* --------- صندوق التأكيد الداخلي --------- */
.confirm-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 448px;
    height: 331.6px;
    padding: 60px;
    gap: 32px;
    border-radius: 12px;
    border: 1px solid #CBD5E0;
    background: #FFF;
    backdrop-filter: blur(2px);
}

.confirm-text {
    color: #403F68;
    text-align: center;
    font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 32px;
}

.confirm-code {
    display: flex;
    width: 142.28px;
    height: 113.6px;
    padding: 32.8px 40.8px;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background: #1B8354;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}

.btn-cancel {
    background: none;
    border: none;
    color: #403F68;
    font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif;
    font-size: 1rem;
    text-decoration: underline;
    cursor: pointer;
}

/* --------- تصميم الحقول --------- */
.form-group {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: var(--Form-field-label-gap, 8px);
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 11px 12px;
    font-size: 1.09rem;
    border: 1.3px solid #cbd5e1;
    border-radius: 8px;
    background: #f7fafc;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

    .form-control:focus {
        border-color: #1B8354;
        background: #fff;
    }

.text-danger {
    color: red !important;
    font-size: 0.98rem;
    margin-top: 3px;
    font-weight: 600;
}

#nid-input {
    width: 100% !important;
    box-sizing: border-box;
    height: 44px;
    display: block;
}

/* --------- زر الإرسال --------- */
.btn-green.w-100 {
    display: flex;
    width: 100% !important;
    height: 40px;
    padding: 0 112px;
    justify-content: center;
    align-items: center;
    gap: var(--Button-buttons-lg-gap, 4px);
    border-radius: var(--Radius-radius-sm, 4px);
    background: var(--Button-button-background-primary-default, #1B8354);
    color: #fff;
    font-size: 1.10rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.16s;
}

    .btn-green.w-100:hover {
        background: #157342;
    }

/* --------- تغيير اتجاه الحقول بالاعتماد على لغة الصفحة --------- */
html[dir="rtl"] .form-control {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .form-control {
    direction: ltr;
    text-align: left;
}

/* --------- روابط اللغة والمساعدة والفوتر --------- */
.login-bottom-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.login-lang {
    font-size: 1.05rem;
    color: #1B8354;
    font-weight: 500;
    text-decoration: none;
}

    .login-lang:hover {
        text-decoration: underline;
    }

.login-help {
   /* display: flex;*/
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    color: #363636;
}

.info-icon {
    color: #1B8354;
    font-size: 1.23em;
    vertical-align: middle;
}

.maak-link {
    color: #1B8354;
    text-decoration: underline;
    font-weight: 600;
}

    .maak-link:hover {
        color: #157342;
    }

.login-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 1.01rem;
    color: #444;
    text-align: center;
}

.footer-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-logo {
    width: 28px;
}

.footer-highlight {
  /*  color: #179764;
    font-weight: 700;*/
}

.footer-copy {
   /* font-weight: 700;*/
    color: #179764;
    letter-spacing: 0.2px;
}

/* --------- تجاوب إضافي (Responsive) --------- */
@media (max-width: 768px) {
    .login-center,
    .confirm-center {
        padding: 4vw;
    }

    .confirm-box {
        width: 90%;
        padding: 4vw;
        height: auto;
    }

    .confirm-code {
        width: 35vw;
        padding: 3vw;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .login-center,
    .confirm-center {
        padding: 3vw;
    }

    .login-title,
    .confirm-text {
        font-size: 1rem;
        line-height: 1.4;
    }

    .btn-green.w-100 {
        font-size: 0.9rem;
    }
}
