:root{--red:#b3151f;--red-d:#8f0f18;--ink:#1c1c1e;--muted:#8b8581;--line:#e8e3df;--cream:#f4f1ee}
*{box-sizing:border-box}
html,body{margin:0}
.auth-body{min-height:100vh;display:block;padding:0;background:#fff;font-family:'Cairo','Tajawal',system-ui,sans-serif;color:var(--ink)}
.auth-card{width:100%;max-width:none;min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff;border-radius:0;overflow:hidden;box-shadow:none}
.auth-art{position:relative;background:url('/images/auth/PC.png') center/cover no-repeat,linear-gradient(145deg,var(--red),#5e0910)}
/* ===== صورة اللوجن (مخصصة) ===== */
.auth-card:not(:has(.auth-photo)) .auth-art{background:url('/images/auth/PC-Login.png') center top/cover no-repeat,linear-gradient(145deg,var(--red),#5e0910)}
/* تلاشي الحد الملاصق للفورم مع الخلفية البيضا في اللوجن والريجيستر (لو الصورة اتقلبت لليمين غيّر to left إلى to right) */
.auth-art::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to left,#fff 0%,rgba(255,255,255,.85) 7%,rgba(255,255,255,.55) 14%,rgba(255,255,255,.2) 24%,rgba(255,255,255,0) 34%)}
.auth-hero-m{display:none}
.auth-form-panel{display:flex;flex-direction:column;justify-content:center;min-width:0}
.auth-form-inner{width:100%;max-width:420px;margin:0 auto;padding:36px 24px}
.auth-logo{display:block;width:130px;margin:0 auto 4px;mix-blend-mode:multiply}
.auth-title{margin:0;text-align:center;font-size:26px;font-weight:800}
.auth-sub{margin:4px 0 20px;text-align:center;color:var(--muted);font-size:13.5px}
.auth-field{margin-bottom:12px}
.auth-input{position:relative}
.auth-input input,.auth-input select{width:100%;height:50px;border:1px solid var(--line);border-radius:14px;background:#fff;padding-inline:46px 14px;font:500 14.5px/1 'Cairo',system-ui,sans-serif;color:var(--ink);outline:none;transition:border-color .15s,box-shadow .15s}
.auth-input input::placeholder{color:#8b8581}
.auth-input input:focus,.auth-input select:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(179,21,31,.12)}
.auth-input input[readonly]{background:#f7f5f3;color:#6b6560}
.auth-input select{appearance:none;cursor:pointer;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f6a66' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center}
.auth-input select:invalid{color:#8b8581}
.auth-input.has-error input,.auth-input.has-error select{border-color:var(--red)}
.auth-ico,.auth-eye svg{width:19px;height:19px;stroke:#6f6a66;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.auth-ico{position:absolute;inset-inline-start:15px;top:50%;transform:translateY(-50%);pointer-events:none}
.auth-eye{position:absolute;inset-inline-start:6px;top:50%;transform:translateY(-50%);width:40px;height:40px;border:0;background:none;cursor:pointer;display:grid;place-items:center}
.auth-eye:hover svg{stroke:var(--red)}
.auth-error{display:block;margin-top:4px;color:var(--red);font-size:12.5px;font-weight:600}
.auth-alert{background:#fdecec;border:1px solid #f4c7ca;color:var(--red-d);padding:10px 12px;border-radius:12px;font-size:13px;margin-bottom:12px}
.auth-alert.ok{background:#eaf6ee;border-color:#bfe3cb;color:#1d6b3a}
.auth-row{display:flex;justify-content:space-between;align-items:center;margin:4px 0 16px;font-size:13px}
.auth-row a,.auth-foot a{color:var(--red);font-weight:700;text-decoration:none}
.auth-row a:hover,.auth-foot a:hover{text-decoration:underline}
.auth-check{display:flex;align-items:center;gap:7px;cursor:pointer;color:#4a4642}
.auth-check input{width:17px;height:17px;accent-color:var(--red)}
.auth-btn{width:100%;height:52px;border:0;border-radius:999px;background:var(--red);color:#fff;font:700 16px 'Cairo',system-ui,sans-serif;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;text-decoration:none;transition:background .15s,transform .05s}
.auth-btn:hover{background:var(--red-d)}
.auth-btn:active{transform:scale(.99)}
.auth-btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.auth-google{background:#fff;color:var(--ink);border:1px solid var(--line);font-size:15px}
.auth-google:hover{background:#faf8f6}
.auth-google svg{width:20px;height:20px;stroke:none}
.auth-or{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px;margin:16px 0}
.auth-or::before,.auth-or::after{content:"";flex:1;height:1px;background:var(--line)}
.auth-foot{margin:18px 0 0;padding-top:14px;border-top:1px solid var(--line);text-align:center;font-size:13.5px;color:var(--muted)}
.auth-photo{display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:14px;cursor:pointer}
.auth-photo .circle{width:86px;height:86px;border-radius:50%;border:2px dashed #cfc8c3;display:grid;place-items:center;background:#faf8f6 center/cover no-repeat;overflow:hidden;transition:border-color .15s}
.auth-photo:hover .circle{border-color:var(--red)}
.auth-photo svg{width:28px;height:28px;stroke:var(--red);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.auth-photo small{font-size:12.5px;color:var(--muted)}
.auth-photo input{display:none}
.auth-photo.has-img .circle{border:2px solid var(--red)}
.auth-photo.has-img svg{display:none}
.g-recaptcha{display:flex;justify-content:center;margin:6px 0 14px}
.auth-captcha-mock{display:flex;align-items:center;gap:10px;height:62px;padding:0 14px;margin:6px 0 14px;border:1px solid var(--line);border-radius:10px;background:#fafafa;font-size:14px;color:#444}
.auth-captcha-mock .box{width:24px;height:24px;border:2px solid #c1c1c1;border-radius:3px;background:#fff}
.auth-captcha-mock small{margin-inline-start:auto;color:#999;font-size:11px}
@media (max-width:360px){.g-recaptcha{transform:scale(.88);transform-origin:center}}
@media (max-width:860px){
  .auth-body{display:block;padding:0;background:var(--cream)}
  .auth-card{display:block;max-width:none;min-height:100vh;border-radius:0;box-shadow:none;background:var(--cream)}
  .auth-art{display:none}
  .auth-hero-m{position:relative;display:block;height:240px;background:url('/images/auth/phone.png') center/cover no-repeat,linear-gradient(145deg,var(--red),#5e0910)}
  /* تلاشي صورة الموبايل من الأسفل مع خلفية الصفحة (للوجن والريجيستر) */
  .auth-hero-m::after{content:"";position:absolute;inset:auto 0 0 0;height:55%;pointer-events:none;background:linear-gradient(to top,var(--cream) 0%,rgba(244,241,238,.85) 20%,rgba(244,241,238,.5) 45%,rgba(244,241,238,0) 100%)}
  .auth-form-panel{justify-content:flex-start}
  .auth-form-inner{padding:14px 22px 32px}
}