/* ==========================================================
   كلية الباحة الأهلية للعلوم — الدخول / الحساب / كلمة المرور
   ========================================================== */

/* ---------- صفحات الدخول ---------- */
.auth-sec { padding-top: 90px; }
.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  min-height: 640px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 8px 9px 0 0 var(--navy), 0 3px 24px rgba(0, 0, 0, .1);
  overflow: hidden;
}
.auth-form-wrap { padding: 54px 64px 48px; display: flex; flex-direction: column; align-items: stretch; }
.auth-form-wrap > .section-badge { align-self: flex-start; }
.auth-title { margin-top: 14px; font-size: 38px; line-height: 58px; color: var(--navy); }
.auth-sub { margin-top: 2px; font-size: 18px; line-height: 30px; color: var(--text); }
.auth-sub b { color: var(--navy); }
.auth-form { margin-top: 30px; }
.auth-form .field + .field { margin-top: 18px; }
.auth-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 16px; }
.auth-grid .field + .field { margin-top: 0; }
.auth-grid .field--full { grid-column: 1 / -1; }

.field--icon input { padding-right: 54px; }
.field input[type="password"] { padding-left: 54px; }
.field__ic {
  position: absolute;
  right: 22px;
  top: 30px;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--gold);
  pointer-events: none;
}
.field__eye {
  position: absolute;
  left: 12px;
  top: 30px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #989797;
  font-size: 16px;
  transition: background-color .3s, color .3s;
}
.field__eye:hover { background: rgba(9, 21, 64, .06); color: var(--navy); }
.field > label ~ .field__ic,
.field > label ~ .field__eye { top: 61px; }
.auth-form .field input,
.auth-form .field .select2-selection--single,
.auth-step .field input,
.acc-form .field input,
.acc-form .field .select2-selection--single { background: var(--grey-bg); border-color: #eef0f4; }

.auth-row { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.auth-link { border: 0; background: none; padding: 0; color: var(--gold); font-weight: 700; font-size: 15px; }
.auth-link:hover { color: var(--navy); }
.check { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span {
  flex: 0 0 22px;
  height: 22px;
  border: 1.5px solid #cfd3dc;
  border-radius: 7px;
  background: var(--white);
  display: grid;
  place-items: center;
  transition: .25s var(--ease);
}
.check span::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; color: var(--white); transform: scale(0); transition: transform .25s var(--ease); }
.check input:checked + span { background: var(--gold); border-color: var(--gold); }
.check input:checked + span::after { transform: scale(1); }
.check input:focus-visible + span { box-shadow: 0 0 0 4px rgba(25, 181, 182, .2); }
.check a { color: var(--gold); font-weight: 700; }
.check--terms { margin-top: 18px; }
.was-validated .check input:invalid + span { border-color: #e56b6b; }
.auth-form .btn-submit { margin-top: 26px; }
.btn-submit i { font-size: 16px; transition: transform .35s var(--ease); }
.btn-submit:hover i.fa-arrow-left-long { transform: translateX(-5px); }
.auth-divider { position: relative; margin: 26px 0 0; text-align: center; }
.auth-divider::before { content: ""; position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: #e7e9ef; }
.auth-divider span { position: relative; padding: 0 14px; background: var(--white); color: #989797; font-size: 14px; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 16px; color: var(--text); }
.auth-switch a { color: var(--gold); font-weight: 700; }
.auth-switch a:hover { color: var(--navy); }

/* قوة كلمة المرور */
.strength { display: flex; align-items: center; gap: 6px; margin: 12px 4px 0; }
.strength i { flex: 1; height: 5px; border-radius: 5px; background: #e7e9ef; transition: background-color .3s; }
.strength span { flex: 0 0 auto; margin-right: 8px; font-size: 13px; color: #989797; min-width: 92px; }
.strength[data-level="1"] i:nth-child(-n+1) { background: #e5484d; }
.strength[data-level="2"] i:nth-child(-n+2) { background: #f5a524; }
.strength[data-level="3"] i:nth-child(-n+3) { background: var(--gold); }
.strength[data-level="4"] i { background: #32ba46; }
.auth-form .strength + .field,
.acc-form .strength + .field { margin-top: 18px; }

/* الجزء المرئي */
.auth-visual { position: relative; overflow: hidden; background: var(--navy); color: var(--white); display: flex; align-items: center; }
.auth-visual__bg { position: absolute; inset: 0; background-size: cover; background-position: 70% center; }
.auth-visual__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 21, 64, .82) 0%, rgba(4, 17, 36, .96) 100%); }
.auth-visual__dots { position: absolute; left: -40px; bottom: -40px; width: 180px; opacity: .15; filter: invert(1); animation: dotsFloat 6s ease-in-out infinite; }
.auth-visual__content { position: relative; z-index: 1; padding: 50px 54px; }
.auth-visual__logo { width: 150px; height: auto; }
.auth-visual h2 { margin-top: 26px; font-size: 32px; line-height: 50px; color: var(--white); }
.auth-visual p { margin-top: 4px; font-size: 17px; color: #c2daff; }
.auth-visual__list { margin-top: 26px; }
.auth-visual__list li { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 26px; }
.auth-visual__list li + li { margin-top: 14px; }
.auth-visual__list li::before { content: ""; flex: 0 0 24px; height: 24px; background: url("../img/icons/tick-circle-light.svg") center / contain no-repeat; }

/* خطوات استعادة كلمة المرور */
.auth-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.auth-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #989797; white-space: nowrap; }
.auth-steps li + li::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: #e7e9ef; margin-left: 2px; }
.auth-steps span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef0f4;
  display: grid;
  place-items: center;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 13px;
  color: #989797;
  transition: .3s;
}
.auth-steps li.is-active,
.auth-steps li.is-done { color: var(--navy); font-weight: 700; }
.auth-steps li.is-active span { background: var(--navy); color: var(--white); }
.auth-steps li.is-done span { background: var(--gold); color: var(--white); }
.auth-steps li.is-done + li::before,
.auth-steps li.is-active::before { background: var(--gold); }
.auth-step { display: none; }
.auth-step.is-active { display: block; animation: filterIn .5s var(--ease) both; }
.auth-step .field { margin-top: 26px; }
.auth-step .strength + .field { margin-top: 18px; }
.auth-step .btn-submit { margin-top: 26px; }
.auth-back { margin-top: 16px; border: 0; background: none; color: var(--text); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.auth-back:hover { color: var(--gold); }
.otp { margin-top: 28px; display: flex; justify-content: center; gap: 14px; }
.otp input {
  width: 68px;
  height: 72px;
  border: 1.5px solid #e2e5ec;
  border-radius: 18px;
  background: var(--grey-bg);
  text-align: center;
  font-family: var(--f-num);
  font-weight: 700;
  font-size: 30px;
  color: var(--navy);
  outline: 0;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.otp input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(25, 181, 182, .15); transform: translateY(-2px); }
.otp input.is-filled { border-color: var(--navy); background: var(--white); }
.otp.is-error input { border-color: #e56b6b; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.otp-timer { margin-top: 18px; text-align: center; font-size: 15px; color: var(--text); }
.otp-timer button { border: 0; background: none; padding: 0; color: var(--gold); font-weight: 700; }
.otp-timer button:disabled { color: #989797; font-weight: 400; cursor: default; }
.auth-done { text-align: center; padding-top: 20px; }
.auth-done.is-active { display: flex; flex-direction: column; align-items: center; }
.auth-done__icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #32ba46;
  font-size: 40px;
  display: grid;
  place-items: center;
  animation: pop .6s var(--ease) both;
}
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-done .btn-submit { width: 100%; margin-top: 26px; }
.auth-done .btn-submit:hover { color: var(--white); }

/* ---------- حسابي ---------- */
.acc-sec { padding-top: 90px; }
.acc-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.acc-side {
  position: sticky;
  top: 110px;
  border-radius: 20px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.acc-profile {
  padding: 34px 24px 26px;
  text-align: center;
  background: url("../img/home/stats-lines.png") center / cover;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.acc-profile__avatar {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #7fdbdc);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}
.acc-profile__avatar span { font-weight: 700; font-size: 28px; color: var(--navy); }
.acc-profile__avatar.has-img span { display: none; }
.acc-profile__edit {
  position: absolute;
  left: -2px;
  bottom: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}
.acc-profile__edit input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acc-profile h3 { margin-top: 14px; font-size: 20px; line-height: 32px; color: var(--white); }
.acc-profile p { font-size: 14px; color: #c2daff; }
.acc-profile__dept { display: inline-block; margin-top: 10px; padding: 4px 14px; border-radius: 30px; background: rgba(25, 181, 182, .2); color: var(--gold); font-size: 13px; }
.acc-nav { padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.acc-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 16px;
  color: rgba(255, 255, 255, .85);
  transition: background-color .3s, color .3s, padding .3s;
}
.acc-nav a i { width: 20px; text-align: center; color: var(--gold); font-size: 16px; }
.acc-nav a:hover { background: rgba(255, 255, 255, .07); color: var(--white); padding-right: 20px; }
.acc-nav a.is-active,
.page-password .acc-nav [data-nav="password"] { background: var(--gold); color: var(--white); font-weight: 700; }
.acc-nav a.is-active i,
.page-password .acc-nav [data-nav="password"] i { color: var(--white); }
.acc-nav__badge { margin-right: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 20px; background: #e5484d; color: var(--white); font-style: normal; font-size: 12px; line-height: 22px; text-align: center; }
.acc-nav__logout { margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1); }

.acc-panel { display: none; }
.acc-panel.is-active { display: block; animation: filterIn .45s var(--ease) both; }
.acc-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(248, 251, 255, 0) 0%, #c0d8fd 100%), var(--grey-bg);
}
.acc-welcome h2 { font-size: 28px; line-height: 44px; color: var(--navy); }
.acc-welcome p { font-size: 16px; color: var(--text); }
.acc-stats { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.acc-stat {
  position: relative;
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  transition: transform .4s var(--ease);
}
.acc-stat:hover { transform: translateY(-5px); }
.acc-stat i { position: absolute; left: 18px; top: 18px; font-size: 26px; opacity: .35; }
.acc-stat strong { display: block; font-family: var(--f-num); font-size: 38px; line-height: 50px; }
.acc-stat span { font-size: 15px; color: #c2daff; }
.acc-stat--gold { background: var(--gold); }
.acc-stat--gold span { color: #fff6e3; }
.acc-stat--green { background: #0f8a45; }
.acc-stat--green span { color: #d7f7e4; }
.acc-stat--red { background: #b3263b; }
.acc-stat--red span { color: #ffe0e5; }
.acc-box {
  margin-top: 20px;
  padding: 26px 28px 28px;
  border-radius: 20px;
  background: #fbfcfe;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .18);
}
.acc-panel > .acc-box:first-child,
.acc-main > .acc-box:first-child { margin-top: 0; }
.acc-box__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.acc-box__head h3 { font-family: var(--f-janna); font-size: 26px; line-height: 40px; color: var(--navy); }
.acc-box__sub { font-size: 15px; color: var(--text); }
.status { display: inline-block; padding: 5px 14px; border-radius: 30px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status--progress { background: #fff1d7; color: var(--gold-dark); }
.status--done { background: #ecfdf5; color: #1c7a3e; }
.status--rejected { background: #ffe6e9; color: #b3263b; }
.acc-timeline { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.acc-timeline li { position: relative; text-align: center; padding: 0 6px; }
.acc-timeline li::before { content: ""; position: absolute; top: 22px; right: 50%; width: 100%; height: 3px; background: #e7e9ef; z-index: 0; }
.acc-timeline li:last-child::before { display: none; }
.acc-timeline li.is-done::before { background: var(--gold); }
.acc-timeline span {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  border-radius: 50%;
  background: #eef0f4;
  color: #989797;
  display: grid;
  place-items: center;
  font-family: var(--f-num);
  font-weight: 700;
}
.acc-timeline li.is-done span { background: var(--gold); color: var(--white); }
.acc-timeline li.is-current span { background: var(--navy); color: var(--white); animation: ring 2s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(9, 21, 64, .35); } 100% { box-shadow: 0 0 0 12px rgba(9, 21, 64, 0); } }
.acc-timeline b { display: block; margin-top: 12px; font-family: var(--f-janna); font-size: 17px; color: var(--navy); }
.acc-timeline small { font-size: 13px; color: #989797; }
.acc-table-wrap { overflow-x: auto; }
.acc-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; min-width: 560px; }
.acc-table th { padding: 0 16px 4px; font-size: 14px; font-weight: 700; color: #989797; text-align: right; }
.acc-table td { padding: 16px; background: var(--white); font-size: 15px; color: var(--navy); }
.acc-table td:first-child { border-radius: 0 14px 14px 0; font-family: var(--f-num); font-weight: 700; }
.acc-table td:last-child { border-radius: 14px 0 0 14px; text-align: left; }
.acc-table__btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(9, 21, 64, .06); display: inline-grid; place-items: center; color: var(--navy); }
.acc-table__btn:hover { background: var(--gold); color: var(--white); }
.acc-form .field > label { display: block; margin: 0 16px 8px 0; font-weight: 700; font-size: 14px; color: var(--navy); }
.acc-form .site-form__grid { row-gap: 20px; }
.acc-form .btn-submit--auto { margin-right: 0; }
.acc-box--password .acc-form { max-width: 560px; }
.acc-box--password .field + .field,
.acc-box--password .strength + .field { margin-top: 20px; }
.pass-rules { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pass-rules li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #989797; transition: color .3s; }
.pass-rules li::before { content: "\f111"; font-family: "Font Awesome 6 Free"; font-weight: 400; font-size: 12px; }
.pass-rules li.is-ok { color: #1c7a3e; }
.pass-rules li.is-ok::before { content: "\f058"; font-weight: 900; }
.notif-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--white);
  transition: background-color .3s;
}
.notif-list li + li { margin-top: 10px; }
.notif-list li.is-unread { background: #f2f7ff; box-shadow: inset -4px 0 0 var(--gold); }
.notif-list__ic { flex: 0 0 44px; height: 44px; border-radius: 12px; background: rgba(9, 21, 64, .07); display: grid; place-items: center; font-size: 18px; color: var(--navy); }
.notif-list__ic--green { background: #ecfdf5; color: #1c7a3e; }
.notif-list__ic--gold { background: #fff1d7; color: var(--gold-dark); }
.notif-list b { display: block; font-size: 16px; color: var(--navy); }
.notif-list p { font-size: 14px; line-height: 24px; color: var(--text); }
.notif-list small { font-size: 12px; color: #989797; }
.page-auth .cta-band,
.page-account .cta-band { margin-top: 120px; }

/* نافذة تفاصيل الطلب */
.acc-table__btn { border: 0; cursor: pointer; transition: background-color .3s, color .3s; }
.req-modal {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 17, 36, .6);
  opacity: 0;
  visibility: hidden;
  transition: .3s var(--ease);
}
.req-modal.is-open { opacity: 1; visibility: visible; }
.req-modal__box {
  position: relative;
  width: min(460px, 100%);
  padding: 34px 30px 28px;
  border-radius: 20px;
  background: var(--white);
  text-align: center;
  box-shadow: 0 24px 60px rgba(4, 17, 36, .3);
  transform: translateY(24px) scale(.97);
  transition: transform .4s var(--ease);
}
.req-modal.is-open .req-modal__box { transform: none; }
.req-modal__close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(9, 21, 64, .07);
  color: var(--navy);
}
.req-modal__close:hover { background: var(--navy); color: var(--white); }
.req-modal__icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 18px; background: #fff1d7; color: var(--gold-dark); display: grid; place-items: center; font-size: 26px; }
.req-modal h3 { margin-top: 14px; font-size: 22px; line-height: 34px; color: var(--navy); }
.req-modal__list { margin: 18px 0 0; text-align: right; }
.req-modal__list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef0f4; }
.req-modal__list dt { font-weight: 400; color: #989797; font-size: 15px; }
.req-modal__list dd { margin: 0; font-weight: 700; color: var(--navy); font-size: 15px; }
.req-modal__actions { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
