/* ========================================================
 * HR-SYSTEM — Auth screens (login / forgot / reset)
 * تصميم زجاجي داكن (Glassmorphism) — تركوازي/ذهبي — RTL/LTR
 * صفحة دخول واحدة لكل الأدوار.
 * ======================================================== */

.auth-body {
  min-height: 100svh;
  margin: 0;
  color: #eafaf7;
  font-family: var(--font);
  background: #06201d;
  overflow-x: hidden;
}

/* ---------------- الخلفية: صورة المكتب الحقيقية ---------------- */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #06201d;
}

/* الصورة الفعلية (مع تمويه خفيف لإخفاء الكارت/الشعار المرسومين داخلها) */
.auth-bg .photo {
  position: absolute;
  inset: -6%;
  background: url("../img/login-bg.webp") center center / cover no-repeat;
  filter: blur(12px) saturate(1.18) brightness(.96);
  transform: scale(1.14);
}

/* طبقة توحيد لونية فوق الصورة لإبراز الكارت وتثبيت درجات الثيم */
.auth-bg .veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 720px at 50% 44%, rgba(6,32,30,.34), rgba(5,26,24,.8) 82%),
    linear-gradient(160deg, rgba(4,26,24,.46), rgba(7,47,42,.4) 55%, rgba(5,30,27,.58));
}

/* ---------------- التخطيط العام ---------------- */
.auth-shell {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 40px 18px 34px;
}

/* ---------------- الشعار (العلامة) ---------------- */
.auth-brand { text-align: center; max-width: 440px; }
.auth-brand .mark {
  width: 96px; height: 70px; margin: 0 auto 10px;
  filter: drop-shadow(0 8px 20px rgba(212,175,55,.35));
}
.auth-brand .name {
  font-size: 34px; font-weight: 900; letter-spacing: 1px; line-height: 1;
  color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.auth-brand .name b {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900;
}
.auth-brand .en {
  margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold-400);
}
.auth-brand .ar {
  margin-top: 6px; font-size: 17px; font-weight: 800; color: #d7f3ee;
}

/* ---------------- البطاقة الزجاجية ---------------- */
.auth-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  padding: 30px 28px 28px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(10,52,48,.72), rgba(6,33,30,.66));
  border: 1px solid rgba(212,175,55,.28);
  box-shadow:
    0 24px 70px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(255,255,255,.03);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
}

.auth-card-head { text-align: center; margin-bottom: 22px; }
.auth-card-head .ico {
  width: 56px; height: 56px; margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212,175,55,.22), rgba(20,184,166,.18));
  border: 1px solid rgba(212,175,55,.4);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}
.auth-card-head .ico svg { width: 28px; height: 28px; }
.auth-card-head h2 { font-size: 22px; font-weight: 900; color: #fff; }
.auth-card-head p { margin-top: 5px; font-size: 13px; color: rgba(234,250,247,.65); }

/* ---------------- الحقول ---------------- */
.auth-field { margin-bottom: 16px; }
.auth-field > label {
  display: block; font-size: 13px; font-weight: 700;
  color: rgba(234,250,247,.82); margin-bottom: 7px;
}
.auth-input-wrap {
  position: relative; display: flex; align-items: center;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-input-wrap:focus-within {
  border-color: var(--gold-500);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px rgba(212,175,55,.18);
}
.auth-input-wrap .lead {
  display: grid; place-items: center;
  width: 46px; flex: 0 0 46px; color: var(--gold-400);
}
.auth-input-wrap .lead svg { width: 19px; height: 19px; }
.auth-input-wrap input {
  flex: 1; width: 100%;
  background: transparent; border: 0; outline: none;
  padding: 14px 4px; font-size: 15px; font-family: inherit;
  color: #fff;
}
.auth-input-wrap input::placeholder { color: rgba(234,250,247,.4); }
.auth-input-wrap input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  transition: background-color 9999s ease-in-out 0s;
}
.auth-eye {
  background: transparent; border: 0; color: rgba(234,250,247,.6);
  font-size: 17px; width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center; cursor: pointer;
}
.auth-eye:hover { color: var(--gold-400); }

/* ---------------- صف تذكرني / نسيت ---------------- */
.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: 6px 0 20px;
}
.auth-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: rgba(234,250,247,.85); cursor: pointer; user-select: none;
}
.auth-check input {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.06);
  display: grid; place-items: center; cursor: pointer; transition: .15s;
}
.auth-check input:checked {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  border-color: var(--gold-500);
}
.auth-check input:checked::after {
  content: "✓"; color: var(--teal-900); font-size: 13px; font-weight: 900; line-height: 1;
}
.auth-link {
  font-size: 13.5px; font-weight: 700; color: var(--gold-400);
  transition: color .15s;
}
.auth-link:hover { color: var(--gold-500); text-decoration: underline; }

/* ---------------- زر الدخول ---------------- */
.auth-btn {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 22px; border: 0; border-radius: 14px;
  font-size: 16.5px; font-weight: 800; font-family: inherit; cursor: pointer;
  color: var(--teal-900);
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 50%, var(--gold-600) 100%);
  box-shadow: 0 10px 26px rgba(212,175,55,.38);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.auth-btn:hover { filter: brightness(1.06); box-shadow: 0 14px 32px rgba(212,175,55,.5); }
.auth-btn:active { transform: translateY(1px) scale(.995); }
.auth-btn .arrow { font-size: 18px; line-height: 1; transition: transform .2s; }
[dir="rtl"] .auth-btn .arrow { transform: scaleX(-1); }
.auth-btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .auth-btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ---------------- رابط الرجوع ---------------- */
.auth-back { text-align: center; margin-top: 18px; }
.auth-back a { font-size: 14px; font-weight: 700; color: rgba(234,250,247,.8); }
.auth-back a:hover { color: var(--gold-400); }

/* ---------------- مبدّل اللغة ---------------- */
.auth-lang {
  position: fixed; top: 18px; inset-inline-end: 18px; z-index: 5;
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.auth-lang button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 800; font-family: inherit;
  color: rgba(234,250,247,.7); transition: .15s;
}
.auth-lang button.active {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--teal-900);
  box-shadow: 0 4px 12px rgba(212,175,55,.35);
}

/* ---------------- حسابات تجريبية ---------------- */
.auth-demo {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center; font-size: 12px; line-height: 1.9;
  color: rgba(234,250,247,.55);
}
.auth-demo b { color: var(--gold-400); }
.auth-demo code {
  color: #d7f3ee; background: rgba(255,255,255,.07);
  padding: 1px 6px; border-radius: 6px; font-size: 11.5px;
}

/* ---------------- التنبيهات (داخل البطاقة الداكنة) ---------------- */
.auth-card .alert {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 14px; border-radius: 12px; font-size: 13.5px;
  margin-bottom: 16px; border: 1px solid transparent; word-break: break-word;
}
.auth-card .alert-success { background: rgba(22,163,74,.16);  border-color: rgba(22,163,74,.4);  color: #bbf7d0; }
.auth-card .alert-danger  { background: rgba(220,38,38,.16);  border-color: rgba(220,38,38,.45); color: #fecaca; }
.auth-card .alert-warning { background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.4); color: #fde68a; }
.auth-card .alert-info    { background: rgba(37,99,235,.16);  border-color: rgba(37,99,235,.4);  color: #bfdbfe; }

/* ========================================================
 * صفحة الدخول الفخمة — خلفية سينمائية متحركة + كارت زجاجي مركزي
 * ======================================================== */
.photo-body {
  min-height: 100svh;
  margin: 0;
  font-family: var(--font);
  background: #06201d;
}
/* منع تحميل صورة الخلفية الثقيلة على صفحة الدخول (الـ Aurora تكفي → أسرع) */
body.photo-body::before,
body.photo-body::after { content: none !important; background: none !important; }

/* المسرح = كامل الشاشة، والكارت في منتصفه */
.photo-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
/* خلفية البرنامج الفخمة خلف كارت الدخول — صورة المكتب الحقيقية */
.photo-stage::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: url("../img/app-bg.png") center center / cover no-repeat, #06201d;
  transform: scale(1.06);
  animation: bgZoom 26s ease-in-out infinite alternate;
}
/* طبقة تركوازية متدرّجة تُبرز الكارت وتعمّق الفخامة */
.photo-stage::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(130deg, rgba(4,24,22,.90), rgba(8,46,42,.62) 45%, rgba(11,61,58,.86));
}
@keyframes bgZoom { from { transform: scale(1.04); } to { transform: scale(1.14); } }

/* كرات ضوئية عائمة (حركة) */
.photo-orb {
  position: absolute; z-index: 2; border-radius: 50%;
  filter: blur(60px); opacity: .55; pointer-events: none;
}
.photo-orb.o1 { width: 42vw; max-width: 460px; aspect-ratio: 1;
  background: radial-gradient(circle, #14b8a6, transparent 70%);
  top: -10%; inset-inline-start: -8%; animation: floatA 19s ease-in-out infinite; }
.photo-orb.o2 { width: 34vw; max-width: 360px; aspect-ratio: 1;
  background: radial-gradient(circle, #d4af37, transparent 70%);
  bottom: -12%; inset-inline-end: -6%; animation: floatB 23s ease-in-out infinite; }
.photo-orb.o3 { width: 26vw; max-width: 280px; aspect-ratio: 1;
  background: radial-gradient(circle, #2dd4bf, transparent 72%);
  top: 38%; inset-inline-end: 24%; animation: floatC 27s ease-in-out infinite; opacity: .4; }
@keyframes floatA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(44px,34px); } }
@keyframes floatB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-36px,-42px); } }
@keyframes floatC { 0%,100% { transform: translate(0,0); } 50% { transform: translate(24px,-30px); } }

/* ===== الكارت الزجاجي المركزي ===== */
.photo-card::-webkit-scrollbar { width: 0; height: 0; display: none; }
.photo-card {
  position: relative; z-index: 3;
  width: min(92vw, 410px);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex; flex-direction: column;
  gap: 15px;
  padding: clamp(26px, 4vw, 40px) clamp(22px, 3.4vw, 34px);
  box-sizing: border-box;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(10,42,38,.74), rgba(6,26,24,.62));
  border: 1px solid rgba(212,175,55,.32);
  box-shadow: 0 34px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  backdrop-filter: blur(24px) saturate(1.25);
  color: #eafaf7;
  animation: cardIn .9s cubic-bezier(.2,.8,.2,1) both, cardFloat 6.5s ease-in-out 1.15s infinite;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.93); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ===== الستارة: الشاشة تبدأ داكنة ثم تنكشف بتشويق ===== */
.photo-curtain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: #03090c;
  opacity: 0; /* fallback: لو الأنيميشن مش شغّال تفضل مخفية (أمان) */
  animation: curtainOut 1s ease .1s both;
}
@keyframes curtainOut { 0% { opacity: 1; visibility: visible; } 99% { visibility: visible; } 100% { opacity: 0; visibility: hidden; } }

/* ===== كشف سينمائي متتابع (نفس تشويق العرض التوضيحي) ===== */
@keyframes luxeReveal {
  from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  to   { opacity: 1; transform: none;            filter: none; }
}
@keyframes logoPop {
  0%   { opacity: 0; transform: scale(.3) rotate(-120deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes tagIn {
  from { opacity: 0; letter-spacing: 16px; }
  to   { opacity: 1; letter-spacing: 5px; }
}
@keyframes btnGlow {
  0%,100% { box-shadow: 0 10px 26px rgba(212,175,55,.38); }
  50%     { box-shadow: 0 16px 46px rgba(212,175,55,.64); }
}

/* الشعار: ظهور دوراني بارتداد (spin-pop) */
.photo-brand .logo,
.photo-brand .logo.has-img { animation: logoPop .9s cubic-bezier(.34,1.56,.64,1) .45s both; }
/* الاسم والتاج */
.photo-brand .name { animation: luxeReveal .7s cubic-bezier(.2,.8,.2,1) .72s both; }
.photo-brand .tag  { animation: tagIn .9s ease .85s both, goldSweep 4.5s linear 1.9s infinite; }
/* عناوين/وصف البطاقات الفرعية (نسيت/إعادة تعيين) */
.photo-card .pc-title { animation: luxeReveal .7s cubic-bezier(.2,.8,.2,1) .9s both; }
.photo-card .pc-sub   { animation: luxeReveal .7s cubic-bezier(.2,.8,.2,1) .98s both; }
/* الحقول بالتتابع */
.photo-card .pc-field { animation: luxeReveal .7s cubic-bezier(.2,.8,.2,1) both; }
.photo-card .pc-field:nth-of-type(1) { animation-delay: 1.02s; }
.photo-card .pc-field:nth-of-type(2) { animation-delay: 1.14s; }
.photo-card .pc-field:nth-of-type(3) { animation-delay: 1.26s; }
.photo-card .pc-row { animation: luxeReveal .7s cubic-bezier(.2,.8,.2,1) 1.22s both; }
.photo-card .pc-btn { animation: luxeReveal .7s cubic-bezier(.2,.8,.2,1) 1.34s both, btnGlow 2.6s ease-in-out 2.4s infinite; }
.photo-card .pc-back { animation: luxeReveal .7s ease 1.2s both; }

/* علامة تجارية داخل الكارت */
.photo-brand { text-align: center; margin-bottom: 4px; }
.photo-brand .logo {
  width: 66px; height: 66px; margin: 0 auto 12px; border-radius: 19px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: grid; place-items: center; color: var(--teal-900);
  font-weight: 900; font-size: 27px; letter-spacing: .5px;
  box-shadow: 0 12px 30px rgba(212,175,55,.42);
  animation: logoPulse 3.6s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { box-shadow: 0 12px 30px rgba(212,175,55,.35); transform: translateY(0); }
  50%     { box-shadow: 0 16px 44px rgba(212,175,55,.62); transform: translateY(-3px); }
}
.photo-brand .logo svg { display: block; }
.photo-brand .logo.has-img { background: #fff; overflow: hidden; width: 148px; height: 148px;
  padding: 20px; border-radius: 50%; margin: 0 auto 15px; animation: logoFloat 4.8s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(255,255,255,.07), 0 0 0 5px rgba(212,175,55,.55), 0 18px 42px rgba(0,0,0,.45); }
.photo-brand .logo.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes logoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.photo-brand .name { font-size: 25px; font-weight: 900; letter-spacing: .4px; color: #fff; line-height: 1.1; }
.photo-brand .name b { color: var(--gold-400); font-weight: 900; }
.photo-brand .tag {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 5px;
  margin-top: 10px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--gold-600), #f6e7b4, var(--gold-400), #f6e7b4, var(--gold-600));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-400);
  filter: drop-shadow(0 2px 10px rgba(212,175,55,.38));
}
@keyframes goldSweep { to { background-position: 220% center; } }

/* شريط ذهبي علوي رفيع يزيّن الكارت */
.photo-card::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 56%; height: 3px; border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, transparent, var(--gold-400), var(--gold-600), var(--gold-400), transparent);
  opacity: .9;
}

/* اختصار اللغة داخل الكارت AR | EN */
.pc-lang {
  position: absolute; top: 14px; inset-inline-end: 16px; z-index: 4;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px 4px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(212,175,55,.3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.pc-lang button {
  border: 0; background: transparent; cursor: pointer;
  color: rgba(234,250,247,.68); font-weight: 800; font-size: 12px;
  letter-spacing: .5px; padding: 3px 8px; border-radius: 999px;
  line-height: 1; transition: all .18s ease;
}
.pc-lang button:hover { color: #fff; }
.pc-lang button.active {
  color: var(--teal-900);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  box-shadow: 0 3px 10px rgba(212,175,55,.4);
}
.pc-lang-sep { color: rgba(234,250,247,.3); font-size: 11px; }

.pc-title {
  margin: 0 0 2px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .3px;
  color: rgba(234,250,247,.92);
  text-align: center;
}

.pc-sub { text-align: center; font-size: 13px; color: rgba(234,250,247,.68); margin: -2px 0 6px; line-height: 1.55; }
.pc-back { text-align: center; margin-top: 4px; }
.pc-back a { font-size: 13.5px; font-weight: 700; color: rgba(234,250,247,.82); }
.pc-back a:hover { color: var(--gold-400); }

.photo-card form { display: flex; flex-direction: column; gap: 14px; }
.pc-field { display: flex; flex-direction: column; gap: 6px; }
.pc-field > label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(234,250,247,.82);
}

.pc-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(6,28,26,.55);
  border: 1px solid rgba(45,212,191,.28);
  transition: border-color .15s, box-shadow .15s;
}
.pc-wrap:focus-within {
  border-color: rgba(212,175,55,.6);
  box-shadow: 0 0 0 3px rgba(212,175,55,.14);
}
.pc-ic {
  display: grid; place-items: center;
  width: 46px;
  flex: 0 0 auto;
  color: rgba(45,212,191,.9);
}
.pc-ic svg { width: 18px; height: 18px; }
.pc-wrap input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0; outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  padding: 13px 0;
  padding-inline-end: 12px;
  caret-color: var(--gold-400);
}
.pc-wrap input::placeholder { color: rgba(234,250,247,.4); }
.pc-wrap input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 100px rgba(8,34,31,.98) inset;
  transition: background-color 9999s;
}
.pc-eye {
  flex: 0 0 auto;
  background: transparent; border: 0; cursor: pointer;
  padding: 0 14px;
  font-size: 16px;
  line-height: 1;
  color: rgba(234,250,247,.7);
}

.pc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.pc-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: rgba(234,250,247,.85);
}
.pc-check input {
  appearance: none; -webkit-appearance: none;
  width: 17px;
  height: 17px;
  margin: 0;
  border-radius: 5px;
  background: rgba(6,28,26,.9);
  border: 1px solid rgba(212,175,55,.6);
  display: grid; place-items: center;
  cursor: pointer;
}
.pc-check input:checked {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-color: var(--gold-500);
}
.pc-check input:checked::after {
  content: "✓"; color: var(--teal-900);
  font-size: 11px; font-weight: 900;
}
.pc-link {
  color: var(--gold-400);
  text-decoration: none;
  font-weight: 700;
}
.pc-link:hover { text-decoration: underline; }

.pc-btn {
  position: relative;
  overflow: hidden;
  align-self: center;
  width: auto;
  min-width: 210px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 6px;
  padding: 15px 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  font-size: 16px;
  color: var(--teal-900);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  box-shadow: 0 10px 26px rgba(212,175,55,.38);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
/* لمعة متحركة تمرّ على الزر */
.pc-btn::after {
  content: ""; position: absolute; top: 0; inset-inline-start: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  animation: pcShine 3.6s ease-in-out infinite;
}
@keyframes pcShine { 0% { inset-inline-start: -60%; } 55%,100% { inset-inline-start: 150%; } }
.pc-btn:hover { filter: brightness(1.06); box-shadow: 0 14px 34px rgba(212,175,55,.5); transform: translateY(-1px); }
.pc-btn:active { transform: translateY(1px); }
.pc-btn > * { position: relative; z-index: 1; }
.pc-arrow { font-size: 1.1em; }
html[dir="rtl"] .pc-arrow { transform: scaleX(-1); }

/* مبدّل اللغة */
.photo-lang {
  position: fixed; top: 16px; inset-inline-end: 16px; z-index: 5;
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(6,28,26,.55);
  border: 1px solid rgba(212,175,55,.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.photo-lang button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; font-family: inherit;
  color: rgba(234,250,247,.75);
}
.photo-lang button.active {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--teal-900);
}

/* تنبيهات أعلى الشاشة */
.photo-flash {
  position: absolute; z-index: 6;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: min(92vw, 520px);
}
.photo-flash .alert { box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.photo-flash:empty { display: none; }

/* ---------------- استجابة الشاشات الصغيرة ---------------- */
@media (max-width: 480px) {
  .auth-brand .name { font-size: 28px; }
  .auth-card { padding: 26px 20px 24px; border-radius: 22px; }
  .auth-lang { top: 12px; inset-inline-end: 12px; }
}

/* الشاشات الصغيرة: الكارت متمركز تلقائياً، نضبط الحشو فقط */
@media (max-width: 420px) {
  .photo-stage { padding: 16px; }
  .photo-card { gap: 13px; }
  .photo-brand .logo { width: 58px; height: 58px; font-size: 24px; }
  .photo-brand .name { font-size: 22px; }
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .photo-stage::before, .photo-orb, .photo-card, .photo-curtain,
  .photo-brand .logo, .photo-brand .logo.has-img, .photo-brand .name, .photo-brand .tag, .pc-btn::after,
  .photo-card .pc-title, .photo-card .pc-sub,
  .photo-card .pc-field, .photo-card .pc-row, .photo-card .pc-btn, .photo-card .pc-back { animation: none !important; }
  .photo-curtain { display: none !important; }
}
