/* صفحات الدخول (الدخول، نسيت كلمة المرور، التحقق بخطوتين): هوية أون لاين.
   الأخضر #72aa42 و#a2ce47 من الشعار، والأخضر الداكن #3d7a1f للأزرار والروابط لوضوح التباين. */
.auth-page {
    --auth-green: #72aa42;
    --auth-deep: #3d7a1f;
    --auth-ink: #1c2420;
    --auth-muted: #66736b;
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding-inline: clamp(16px, 4vw, 40px);
    background: linear-gradient(180deg, #f3f8ec 0%, #ffffff 64%);
    color: var(--auth-ink);
    font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    position: relative;
    overflow-x: hidden;
}
/* رمز الشعار فاتحاً في الخلفية */
.auth-page::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    inset-inline-start: -150px;
    bottom: -200px;
    background: url("../images/mark.svg") center / contain no-repeat;
    opacity: .10;
    pointer-events: none;
}

.auth-top, .auth-main, .auth-foot { position: relative; }
.auth-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1080px;
    width: 100%;
    margin-inline: auto;
    padding-block: 26px 8px;
}
.auth-logo { height: 96px; width: auto; display: block; }
.auth-pill {
    font-size: .82rem;
    font-weight: 500;
    color: var(--auth-deep);
    background: #e6f1d9;
    padding: 5px 14px;
    border-radius: 99px;
}
.auth-main { width: 100%; max-width: 1080px; margin-inline: auto; display: grid; align-items: center; }
.auth-foot { text-align: center; padding-block: 14px 22px; font-size: .78rem; color: #78857d; }

.login-body {
    display: grid;
    justify-items: center;
    align-items: center;
    padding-block: 18px 30px;
}
.login-split {
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    justify-items: stretch;
}
.login-copy h1 {
    font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
    font-weight: 600;
    font-size: 1.95rem;
    line-height: 1.55;
    color: #17261a;
    margin: 0 0 14px;
    text-wrap: balance;
}
.login-copy p { color: #4b5a51; max-width: 44ch; margin: 0 0 20px; }
.login-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; color: #2f3d35; }
.login-copy li { display: flex; align-items: center; gap: 12px; }
.login-copy li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--auth-green); flex: none; }

.login-card {
    background: #fff;
    border: 1px solid #dfe8d6;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(61, 122, 31, .12);
    width: 100%;
    max-width: 460px;
    padding: 2rem 2rem 1.6rem;
    justify-self: center;
}
.login-logo { margin-bottom: 1.4rem; }
.login-title {
    font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--auth-ink);
    margin-bottom: .2rem;
}
.login-subtitle { font-size: .9rem; color: var(--auth-muted); }

.auth-page a { color: var(--auth-deep); }
.auth-page .form-label { font-size: .85rem; font-weight: 500; color: #2d3a33; }
.auth-page .form-control { height: 46px; border-color: #cfd8cc; }
.auth-page .form-control:focus {
    border-color: var(--auth-green);
    box-shadow: 0 0 0 3px rgba(114, 170, 66, .20);
}
.auth-page .input-group-text { background: #f4f8ef; border-color: #cfd8cc; color: #55625a; }
.auth-page .form-check-input:checked { background-color: var(--auth-deep); border-color: var(--auth-deep); }
.auth-page .form-check-input:focus { box-shadow: 0 0 0 3px rgba(114, 170, 66, .25); border-color: var(--auth-green); }
.auth-page .btn-primary {
    --bs-btn-bg: #5b9530;
    --bs-btn-border-color: #5b9530;
    --bs-btn-hover-bg: var(--auth-deep);
    --bs-btn-hover-border-color: var(--auth-deep);
    --bs-btn-active-bg: #34691a;
    --bs-btn-active-border-color: #34691a;
    --bs-btn-disabled-bg: #8fbb6b;
    --bs-btn-disabled-border-color: #8fbb6b;
    --bs-btn-focus-shadow-rgb: 114, 170, 66;
    min-height: 48px;
    border-radius: 8px;
    font-family: "Readex Pro", "IBM Plex Sans Arabic", sans-serif;
    /* site.css يضبط .btn-primary مباشرة، فنكتب القيم هنا لا عبر متغيرات Bootstrap */
    background: linear-gradient(180deg, #78b046, #5b9530);
    border-color: #5b9530;
}
.auth-page .btn-primary:hover, .auth-page .btn-primary:active { background: var(--auth-deep); border-color: var(--auth-deep); }
.auth-page .btn-primary:disabled { background: #8fbb6b; border-color: #8fbb6b; }
.auth-page .btn-outline-secondary {
    --bs-btn-color: #55625a;
    --bs-btn-border-color: #cfd8cc;
    --bs-btn-hover-bg: #f4f8ef;
    --bs-btn-hover-color: var(--auth-ink);
    --bs-btn-hover-border-color: #cfd8cc;
    --bs-btn-active-bg: #e9f1df;
    --bs-btn-active-color: var(--auth-ink);
    --bs-btn-active-border-color: #cfd8cc;
}
.auth-page .btn-outline-primary {
    --bs-btn-color: var(--auth-deep);
    --bs-btn-border-color: var(--auth-green);
    --bs-btn-hover-bg: var(--auth-deep);
    --bs-btn-hover-border-color: var(--auth-deep);
    --bs-btn-active-bg: #34691a;
    --bs-btn-active-border-color: #34691a;
    --bs-btn-focus-shadow-rgb: 114, 170, 66;
    min-height: 48px;
    border-radius: 8px;
}
.auth-page .text-primary { color: var(--auth-deep) !important; }

@media (max-width: 780px) {
    .auth-logo { height: 72px; }
    .auth-pill { display: none; }
    .login-split { grid-template-columns: 1fr; gap: 22px; }
    .login-copy h1 { font-size: 1.5rem; }
    .login-copy ul { display: none; }
    .login-card { padding: 1.5rem 1.25rem 1.25rem; }
    .auth-page::before { width: 380px; height: 380px; inset-inline-start: -120px; bottom: -140px; }
}
