/* EDU — Auth & Welcome (professional mobile-first) */

.auth-body-pro,
.welcome-app-body{
  margin:0;
  min-height:100vh;
  font-family:'Tajawal',system-ui,sans-serif;
  background:
    radial-gradient(circle at 100% 0%, rgba(139,53,255,.14), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(11,20,38,.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f9f5ff 48%, #ffffff 100%);
  color:#191919;
  -webkit-font-smoothing:antialiased;
}

.auth-app-screen-pro{
  width:100%;
  max-width:1080px;
  min-height:100vh;
  margin:0 auto;
  padding:max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:20px;
}

@media (min-width:860px){
  .auth-app-screen-pro{
    display:grid;
    grid-template-columns:1fr 1.05fr;
    align-items:stretch;
    gap:24px;
    padding:32px 28px;
  }
}

.auth-brand-panel-pro{
  position:relative;
  overflow:hidden;
  border-radius:32px;
  padding:32px 24px;
  color:#fff;
  background:
    radial-gradient(circle at 15% 12%, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(145deg, #070D18 0%, #0B1426 42%, #1A2942 100%);
  box-shadow:0 28px 70px rgba(11,20,38,.28);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  min-height:280px;
}

.auth-brand-panel-pro::before,
.auth-brand-panel-pro::after{
  content:"";
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,.08);
}
.auth-brand-panel-pro::before{width:200px;height:200px;top:-80px;inset-inline-start:-60px;}
.auth-brand-panel-pro::after{width:140px;height:140px;bottom:-50px;inset-inline-end:-30px;}

.auth-brand-panel-pro > *{position:relative;z-index:1;}

.auth-logo-pro{
  width:88px;
  height:88px;
  border-radius:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  font-weight:900;
  letter-spacing:.5px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 16px 40px rgba(0,0,0,.12);
  margin-bottom:16px;
}

.auth-brand-kicker{
  display:inline-flex;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.2);
  font-size:12px;
  font-weight:800;
}

.auth-brand-panel-pro h1{
  margin:14px 0 10px;
  font-size:clamp(26px, 5vw, 34px);
  font-weight:900;
  line-height:1.25;
}

.auth-brand-panel-pro .auth-brand-lead{
  margin:0 0 18px;
  max-width:360px;
  line-height:1.75;
  font-weight:600;
  color:rgba(255,255,255,.9);
  font-size:15px;
}

.auth-trust-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
}
.auth-trust-pill{
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  font-size:12px;
  font-weight:800;
}

.auth-card-pro{
  background:#fff;
  border:1px solid rgba(11,20,38,.12);
  border-radius:28px;
  padding:22px 20px;
  box-shadow:0 24px 60px rgba(31,18,51,.08);
}

.auth-top-links{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
  gap:10px;
}
.auth-top-links a{
  color:#0B1426;
  text-decoration:none;
  font-size:13px;
  font-weight:800;
}

.auth-switch-pro{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:6px;
  border-radius:18px;
  background:#f5efff;
  border:1px solid #D8DEE8;
  margin-bottom:18px;
}
.auth-switch-pro a{
  min-height:48px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#3b2a55;
  font-weight:900;
  font-size:14px;
}
.auth-switch-pro a.active{
  background:linear-gradient(135deg,#0B1426,#1A2942);
  color:#fff;
  box-shadow:0 10px 24px rgba(11,20,38,.22);
}

.auth-role-grid{
  display:grid;
  gap:10px;
  margin-bottom:16px;
}
.auth-role-card{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid #D8DEE8;
  background:#fff;
  text-decoration:none;
  color:inherit;
  transition:border-color .2s, box-shadow .2s, background .2s;
}
.auth-role-card.active{
  border-color:#b794f6;
  background:linear-gradient(180deg,#fff,#F3F2EF);
  box-shadow:0 12px 28px rgba(11,20,38,.10);
}
.auth-role-card .role-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#F3F2EF;
  color:#0B1426;
}
.auth-role-card .role-icon svg,
.auth-field__icon svg,
.auth-trust-pill__icon svg{
  display:block;
  width:20px;
  height:20px;
}
.auth-trust-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.auth-trust-pill__icon{
  display:inline-flex;
  color:rgba(255,255,255,.95);
}
.auth-role-card strong{display:block;font-size:15px;}
.auth-role-card small{display:block;color:#666666;font-weight:600;line-height:1.5;margin-top:2px;}
.auth-role-card .role-check{
  width:22px;
  height:22px;
  border-radius:50%;
  border:2px solid #d8c4ff;
}
.auth-role-card.active .role-check{
  border-color:#0B1426;
  background:#0B1426;
  box-shadow:inset 0 0 0 4px #fff;
}

.auth-form-pro .field-label{
  display:block;
  margin:0 0 8px;
  font-size:13px;
  font-weight:900;
  color:#24123a;
}
.auth-field--select select:not(.auth-control){
  width:100%;
  border:0;
  background:transparent;
  font:inherit;
  padding:14px 44px 14px 16px;
  color:inherit;
  appearance:none;
}
.auth-hint-pro{
  font-size:.85rem;
  color:#6b5a7d;
  margin:8px 0 4px;
  line-height:1.5;
}
.auth-field{
  position:relative;
  margin-bottom:14px;
}
.auth-field input:not([type="checkbox"]){
  width:100%;
  height:54px;
  border:1px solid #e4d4ff;
  border-radius:16px;
  padding:0 44px 0 14px;
  font-family:inherit;
  font-size:15px;
  background:#fff;
  outline:none;
}
.auth-field input:focus{
  border-color:#000000;
  box-shadow:0 0 0 4px rgba(13,27,62,.08);
}
.auth-field__icon{
  position:absolute;
  inset-inline-end:14px;
  top:50%;
  transform:translateY(-50%);
  color:#9b8db8;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}

.auth-field--phone{
  margin-bottom:0;
}
.auth-field--phone .auth-phone-combo{
  display:flex;
  flex-direction:row;
  align-items:stretch;
  width:100%;
  min-height:52px;
  direction:ltr;
  border:1px solid #e4d4ff;
  border-radius:14px;
  background:#fff;
  overflow:visible;
  transition:border-color .2s, box-shadow .2s;
}
.auth-field--phone .auth-phone-input{
  border-radius:0 14px 14px 0;
}
.auth-field--phone:focus-within .auth-phone-combo{
  border-color:#000000;
  box-shadow:0 0 0 4px rgba(13,27,62,.08);
}
.auth-phone-prefix-picker{
  position:relative;
  flex:0 0 auto;
  z-index:4;
}
.auth-phone-prefix-picker.is-open{
  z-index:10002;
}
.auth-picker-backdrop{
  position:fixed;
  inset:0;
  z-index:10040;
  background:rgba(17,24,39,.42);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .2s ease, visibility .2s ease;
  touch-action:none;
}
.auth-picker-backdrop.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
body.auth-picker-open{
  overflow:hidden;
}
body.auth-picker-open .auth-bakkah,
body.auth-picker-open .edu-app{
  position:relative;
  z-index:10041;
}
.auth-picker-panel--portaled{
  position:fixed !important;
  top:auto !important;
  bottom:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  max-width:none !important;
  max-height:min(55vh,420px) !important;
  border-radius:18px 18px 0 0 !important;
  z-index:10050 !important;
  pointer-events:auto !important;
  box-shadow:0 -12px 40px rgba(17,24,39,.18) !important;
}
.auth-phone-prefix__panel.auth-picker-panel--portaled{
  display:flex !important;
  flex-direction:column;
}
.auth-country-picker__panel.auth-picker-panel--portaled{
  display:block !important;
}
.auth-picker-panel--portaled .auth-phone-prefix__close,
.auth-picker-panel--portaled .auth-country-picker__close{
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:flex-end;
  margin:8px 10px 0;
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:#f1f5f9;
  color:#475569;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  font-family:inherit;
  flex-shrink:0;
}
.auth-picker-panel--portaled .auth-phone-prefix__list,
.auth-picker-panel--portaled .auth-country-picker__list{
  max-height:calc(min(55vh,420px) - 60px);
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  touch-action:pan-y;
}
.auth-picker-panel--portaled .auth-phone-prefix__option,
.auth-picker-panel--portaled .auth-country-picker__option{
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  pointer-events:auto;
}
.auth-phone-prefix__trigger{
  display:flex;
  align-items:center;
  gap:6px;
  height:100%;
  min-height:52px;
  padding:0 10px 0 12px;
  border:0;
  background:#f8fafc;
  border-inline-end:1px solid #e2e8f0;
  color:#000000;
  font-weight:800;
  font-size:13px;
  line-height:1;
  direction:ltr;
  white-space:nowrap;
  cursor:pointer;
  font-family:inherit;
  transition:background .15s ease;
}
.auth-phone-prefix__trigger:hover,
.auth-phone-prefix-picker.is-open .auth-phone-prefix__trigger{
  background:#eef2f7;
}
.auth-phone-prefix__flag{
  font-size:16px;
  line-height:1;
}
.auth-phone-prefix__code{
  letter-spacing:.02em;
}
.auth-phone-prefix__chev{
  width:0;
  height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid #64748b;
  margin-inline-start:2px;
  transition:transform .18s ease;
}
.auth-phone-prefix-picker.is-open .auth-phone-prefix__chev{
  transform:rotate(180deg);
}
.auth-phone-prefix__panel{
  position:absolute;
  top:calc(100% + 6px);
  inset-inline-start:0;
  width:min(280px,calc(100vw - 32px));
  max-height:min(280px,42vh);
  overflow:hidden;
  display:none;
  flex-direction:column;
  background:#fff;
  border:1px solid #e4d4ff;
  border-radius:14px;
  box-shadow:0 16px 40px rgba(17,24,39,.14);
}
.auth-phone-prefix-picker.is-open .auth-phone-prefix__panel{
  display:flex;
}
.auth-phone-prefix__panel[hidden]{
  display:none !important;
}
.auth-phone-prefix__close{
  display:none;
}
.auth-phone-prefix__search-wrap{
  padding:10px;
  border-bottom:1px solid #eef2f7;
  flex-shrink:0;
}
.auth-phone-prefix__search{
  width:100%;
  min-height:38px;
  padding:0 12px;
  border:1px solid #e4d4ff;
  border-radius:10px;
  font:inherit;
  font-size:13px;
  outline:none;
}
.auth-phone-prefix__search:focus{
  border-color:#000000;
}
.auth-phone-prefix__list{
  overflow:auto;
  padding:6px;
}
.auth-phone-prefix__option{
  display:grid;
  grid-template-columns:auto auto 1fr;
  align-items:center;
  gap:8px;
  width:100%;
  padding:10px 10px;
  border:0;
  border-radius:10px;
  background:transparent;
  text-align:start;
  cursor:pointer;
  font:inherit;
  font-size:13px;
  color:#191919;
  direction:ltr;
}
.auth-phone-prefix__option:hover,
.auth-phone-prefix__option:focus{
  background:#f8fafc;
}
.auth-phone-prefix__option.is-selected{
  background:rgba(11,20,38,.08);
  font-weight:800;
}
.auth-phone-prefix__option[hidden]{
  display:none !important;
}
.auth-phone-prefix__option-flag{
  font-size:16px;
  line-height:1;
}
.auth-phone-prefix__option-dial{
  font-weight:800;
  color:#000000;
  min-width:3.2em;
}
.auth-phone-prefix__option-name{
  color:#64748b;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.auth-phone-input{
  flex:1;
  min-width:0;
  width:100%;
  height:52px;
  border:0;
  background:transparent;
  padding:0 12px;
  font-family:inherit;
  font-size:15px;
  color:#191919;
  outline:none;
  direction:ltr;
  text-align:left;
}
.auth-phone-input::placeholder{
  color:#a89bb8;
}
.auth-field-hint{
  margin:6px 0 0;
  font-size:12px;
  font-weight:600;
  color:#8b7aa3;
  line-height:1.5;
}
.auth-field-hint--phone{
  margin:-2px 0 8px;
  color:#64748b;
}

.auth-file-field{
  position:relative;
}
.auth-file-input{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.auth-file-label{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:52px;
  padding:10px 14px;
  border:1px dashed #d4b8ff;
  border-radius:14px;
  background:#F3F2EF;
  cursor:pointer;
  transition:border-color .2s, background .2s;
}
.auth-file-label:hover{
  border-color:#b794f6;
  background:#f5efff;
}
.auth-file-label__icon{
  flex:0 0 auto;
  width:36px;
  height:36px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#F3F2EF;
  color:#0B1426;
}
.auth-file-label__icon svg{width:18px;height:18px;}
.auth-file-label__text{
  flex:1;
  font-size:13px;
  font-weight:700;
  color:#4b3d63;
  line-height:1.4;
  word-break:break-word;
}
.auth-file-input:focus-visible + .auth-file-label{
  border-color:#0B1426;
  box-shadow:0 0 0 4px rgba(11,20,38,.10);
}
.auth-toggle-pass{
  position:absolute;
  inset-inline-start:10px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:#0B1426;
  font-family:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  padding:6px 10px;
  z-index:2;
}

/* Password — flex row: icon | input | إظهار (no overlap in RTL) */
.auth-field--password{
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 12px;
  min-height:52px;
  border:1px solid #e4d4ff;
  border-radius:14px;
  background:#fff;
  box-sizing:border-box;
}
.auth-field--password .auth-control{
  flex:1 1 auto;
  order:2;
  min-width:0;
  width:auto;
  height:auto;
  min-height:44px;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  box-shadow:none;
  outline:none;
}
.auth-field--password .auth-control:focus{
  border:0;
  box-shadow:none;
}
.auth-field--password .auth-toggle-pass{
  position:static;
  inset:auto;
  transform:none;
  order:3;
  flex:0 0 auto;
  border-radius:10px;
  background:#fff7ed;
  color:#ea580c;
  font-weight:800;
}
.auth-field--password .auth-field__icon{
  position:static;
  transform:none;
  order:1;
  flex:0 0 auto;
}
html[dir="rtl"] .auth-field--password .auth-control{
  text-align:right;
}
html[dir="ltr"] .auth-field--password .auth-control{
  text-align:left;
}

.auth-remember{
  display:flex;
  align-items:center;
  gap:8px;
  margin:4px 0 16px;
  font-size:13px;
  font-weight:700;
  color:#666666;
}
.auth-remember input{accent-color:#0B1426;width:18px;height:18px;}

.auth-submit-pro{
  width:100%;
  min-height:56px;
  border:0;
  border-radius:18px;
  background:linear-gradient(135deg,#0B1426 0%,#152238 55%, #1A2942 100%);
  color:#fff;
  font-family:inherit;
  font-size:17px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 16px 36px rgba(11,20,38,.28);
}
.auth-submit-pro:active{transform:scale(.99);}

.auth-alert-pro{
  border-radius:16px;
  padding:12px 14px;
  margin-bottom:14px;
  font-weight:800;
  line-height:1.6;
  font-size:14px;
}
.auth-alert-pro.error{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239;}
.auth-alert-pro.success{background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;}

.auth-footer-pro{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:center;
  text-align:center;
}
.auth-footer-pro a{
  color:#0B1426;
  font-weight:900;
  text-decoration:none;
  font-size:14px;
}

.auth-demo-pro{
  margin-top:16px;
  padding:14px;
  border-radius:18px;
  background:linear-gradient(180deg,#F3F2EF,#fff);
  border:1px dashed #d4b8ff;
  text-align:center;
}
.auth-demo-pro strong{display:block;color:#0B1426;font-size:14px;margin-bottom:6px;}
.auth-demo-pro code{
  display:block;
  font-size:12px;
  color:#4b3d63;
  line-height:1.7;
  word-break:break-all;
}

/* Welcome app */
.welcome-app-body{
  padding:max(12px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  display:flex;
  align-items:center;
  justify-content:center;
}

.welcome-app-shell{
  width:min(100%, 520px);
  min-height:calc(100vh - 32px);
  position:relative;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:20px 18px 18px;
  border-radius:36px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(11,20,38,.10);
  box-shadow:0 30px 80px rgba(31,18,51,.10);
  overflow:hidden;
}

.welcome-app-skip{
  position:absolute;
  top:16px;
  inset-inline-start:16px;
  z-index:5;
  padding:8px 16px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(11,20,38,.14);
  color:#0B1426;
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  box-shadow:0 8px 20px rgba(11,20,38,.08);
}

.welcome-app-hero{
  position:relative;
  height:200px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:28px;
}
.welcome-app-glow{
  position:absolute;
  width:130px;
  height:130px;
  border-radius:50%;
  filter:blur(26px);
  opacity:.5;
}
.welcome-app-glow--a{background:#1A2942;top:20px;inset-inline-end:30px;}
.welcome-app-glow--b{background:#C7C7C7;bottom:10px;inset-inline-start:40px;}

.welcome-app-orbit{
  position:relative;
  width:200px;
  height:200px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.welcome-app-orbit span.ring{
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(11,20,38,.12);
}
.welcome-app-orbit .ring-a{width:200px;height:200px;animation:welcomeSpin 14s linear infinite;}
.welcome-app-orbit .ring-b{width:150px;height:150px;animation:welcomeSpin 10s linear reverse infinite;}
@keyframes welcomeSpin{to{transform:rotate(360deg)}}

.welcome-app-logo{
  width:104px;
  height:104px;
  border-radius:32px;
  background:linear-gradient(135deg,#0B1426,#1A2942);
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  box-shadow:0 22px 50px rgba(11,20,38,.30);
  z-index:2;
}
.welcome-app-logo em{font-style:normal;font-size:28px;font-weight:900;}
.welcome-app-logo small{font-size:11px;font-weight:800;opacity:.9;}

.welcome-app-slider{
  position:relative;
  min-height:150px;
}
.welcome-app-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transform:translateY(12px);
  transition:opacity .35s ease, transform .35s ease;
  pointer-events:none;
  text-align:center;
  padding:0 6px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.welcome-app-slide.active{
  opacity:1;
  transform:none;
  pointer-events:auto;
}
.welcome-app-slide .slide-badge{
  display:inline-flex;
  padding:6px 12px;
  border-radius:999px;
  background:#F3F2EF;
  color:#0B1426;
  font-size:12px;
  font-weight:900;
  margin-bottom:10px;
}
.welcome-app-slide h2{
  margin:0 0 10px;
  font-size:clamp(24px, 6vw, 32px);
  font-weight:900;
  line-height:1.25;
  color:#191919;
}
.welcome-app-slide p{
  margin:0 auto;
  max-width:400px;
  color:#666666;
  font-weight:700;
  line-height:1.7;
  font-size:15px;
}

.welcome-app-features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.welcome-feat{
  padding:12px 8px;
  border-radius:20px;
  background:#fff;
  border:1px solid rgba(11,20,38,.08);
  text-align:center;
  box-shadow:0 10px 24px rgba(31,18,51,.04);
}
.welcome-feat.is-highlight{
  background:linear-gradient(180deg,#fff,#F3F2EF);
  border-color:rgba(11,20,38,.18);
  transform:translateY(-4px);
}
.welcome-feat .feat-icon{font-size:22px;display:block;margin-bottom:6px;}
.welcome-feat b{display:block;font-size:12px;font-weight:900;color:#24123a;}
.welcome-feat span{display:block;font-size:10px;color:#7c7489;font-weight:700;margin-top:4px;line-height:1.35;}

.welcome-app-dots{
  display:flex;
  justify-content:center;
  gap:8px;
}
.welcome-app-dots button{
  width:8px;
  height:8px;
  border:0;
  border-radius:999px;
  background:#e7ddf6;
  padding:0;
  cursor:pointer;
  transition:width .25s ease, background .25s ease;
}
.welcome-app-dots button.active{
  width:28px;
  background:#0B1426;
}

.welcome-app-actions{
  display:grid;
  gap:10px;
}
.welcome-btn-primary,
.welcome-btn-secondary,
.welcome-btn-ghost{
  min-height:54px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:inherit;
  font-size:16px;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  border:0;
}
.welcome-btn-primary{
  background:linear-gradient(135deg,#0B1426,#1A2942);
  color:#fff;
  box-shadow:0 14px 32px rgba(11,20,38,.26);
}
.welcome-btn-secondary{
  background:#fff;
  color:#0B1426;
  border:1px solid #e4d4ff;
}
.welcome-btn-ghost{
  background:transparent;
  color:#7c7489;
  font-size:14px;
  min-height:44px;
}
.welcome-btn-primary.is-ready{
  animation:welcomePulse 2s ease infinite;
}
@keyframes welcomePulse{
  0%,100%{box-shadow:0 14px 32px rgba(11,20,38,.26);}
  50%{box-shadow:0 18px 40px rgba(139,53,255,.38);}
}

/* ——— Register form (professional layout) ——— */
.auth-card-pro--register,
.auth-form-pro--register{
  overflow:visible;
}

.auth-form-head{
  margin-bottom:18px;
  padding-bottom:14px;
  border-bottom:1px solid #f0e8ff;
}
.auth-form-head__title{
  margin:0 0 6px;
  font-size:20px;
  font-weight:900;
  color:#191919;
}
.auth-form-head__sub{
  margin:0;
  font-size:14px;
  font-weight:600;
  color:#666666;
  line-height:1.6;
}

.auth-section-label{
  margin:0 0 10px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#8b7aa3;
}

.auth-role-strip{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
  padding:4px 0 14px;
  margin-bottom:8px;
}
@media (min-width:420px){
  .auth-role-strip{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}
@media (min-width:560px){
  .auth-role-strip{
    grid-template-columns:repeat(5, minmax(0, 1fr));
  }
}

.auth-role-chip{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:44px;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid #e4d4ff;
  background:#fff;
  text-decoration:none;
  color:#3b2a55;
  font-weight:800;
  font-size:13px;
  transition:border-color .2s, background .2s, box-shadow .2s, color .2s;
}
.auth-role-chip__icon{
  width:28px;
  height:28px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#F3F2EF;
  color:#0B1426;
}
.auth-role-chip__icon svg{width:16px;height:16px;}
.auth-role-chip__text{
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
}
.auth-role-chip.is-active{
  border-color:#b794f6;
  background:linear-gradient(135deg,#0B1426,#152238);
  color:#fff;
  box-shadow:0 10px 24px rgba(11,20,38,.22);
}
.auth-role-chip.is-active .auth-role-chip__icon{
  background:rgba(255,255,255,.18);
  color:#fff;
}

.auth-form-block{
  margin-bottom:14px;
  padding:16px 18px;
  border-radius:16px;
  background:#fff;
  border:1px solid #e8ecf1;
  box-shadow:0 4px 18px rgba(15,23,42,.04);
}
.auth-form-block--security{
  margin-bottom:6px;
}
.auth-form-block__title{
  margin:0 0 12px;
  font-size:14px;
  font-weight:900;
  color:#000000;
  display:flex;
  align-items:center;
  gap:8px;
}
.auth-form-block__title::before{
  content:"";
  width:4px;
  height:14px;
  border-radius:4px;
  background:#000000;
  flex-shrink:0;
}

.auth-form-grid{
  display:grid;
  gap:12px;
}
@media (min-width:640px){
  .auth-form-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .auth-form-grid--contact{
    grid-template-columns:1fr;
  }
  .auth-form-grid--contact:has(.auth-input--country){
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .auth-form-pro--register .auth-input--email,
  .auth-form-pro--register .auth-input--phone{
    grid-column:1 / -1;
  }
  .auth-form-grid--contact:has(.auth-input--country) .auth-input--phone{
    grid-column:auto;
  }
  .auth-form-block--security .auth-form-grid,
  .auth-bakkah__form--register .auth-form-block--security .auth-form-grid {
    grid-template-columns: 1fr;
  }
}

.auth-input__label{
  display:block;
  margin:0 0 8px;
  font-size:13px;
  font-weight:800;
  color:#24123a;
}
.auth-input__label .req{color:#c0264d;}

.auth-control{
  width:100%;
  height:52px;
  border:1px solid #e4d4ff;
  border-radius:14px;
  padding:0 44px 0 14px;
  font-family:inherit;
  font-size:15px;
  background:#fff;
  outline:none;
  color:#191919;
  transition:border-color .2s, box-shadow .2s;
}
.auth-control:focus{
  border-color:#000000;
  box-shadow:0 0 0 4px rgba(13,27,62,.08);
}
.auth-control::placeholder{color:#a89bb8;}

html[dir="rtl"] .auth-input--phone .auth-control,
html[dir="rtl"] .auth-input--phone .auth-phone-input {
  text-align: end;
  direction: ltr;
  unicode-bidi: plaintext;
}

.auth-form-pro--register .auth-field{
  margin-bottom:0;
}
.auth-form-pro--register .auth-field input:not([type="checkbox"]),
.auth-form-pro--register .auth-field .auth-control{
  width:100%;
}

.auth-form-pro--register .auth-field--password .auth-control{
  width:auto;
}

/* Country picker — opens downward */
.auth-input--country{
  position:relative;
  z-index:1;
}
.auth-country-picker{
  position:relative;
}
.auth-country-picker.is-open{
  z-index:10002;
}
.auth-country-picker__trigger{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  height:52px;
  text-align:start;
  cursor:pointer;
  padding-inline-end:40px;
  border:1px solid #e4d4ff;
  border-radius:14px;
  background:#fff;
  transition:border-color .2s, box-shadow .2s;
}
.auth-country-picker.is-open .auth-country-picker__trigger,
.auth-country-picker__trigger:focus{
  border-color:#000000;
  box-shadow:0 0 0 4px rgba(13,27,62,.08);
  outline:none;
}
.auth-country-picker__trigger .auth-field__icon{
  inset-inline-end:12px;
}
.auth-country-picker__value{
  flex:1;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:700;
}
.auth-country-picker__chev{
  position:absolute;
  inset-inline-end:38px;
  top:50%;
  width:8px;
  height:8px;
  margin-top:-5px;
  border-right:2px solid #94a3b8;
  border-bottom:2px solid #94a3b8;
  transform:rotate(45deg);
  pointer-events:none;
  transition:transform .2s;
}
.auth-country-picker.is-open .auth-country-picker__chev{
  margin-top:-2px;
  transform:rotate(-135deg);
}
.auth-country-picker__panel{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  right:0;
  z-index:300;
  display:none;
  background:#fff;
  border:1px solid #e4d4ff;
  border-radius:16px;
  box-shadow:0 20px 50px rgba(31,18,51,.14);
  overflow:hidden;
}
.auth-country-picker.is-open .auth-country-picker__panel{
  display:block;
}
.auth-country-picker__panel[hidden]{
  display:none !important;
}
.auth-country-picker__close{
  display:none;
}
.auth-country-picker__search-wrap{
  padding:10px;
  border-bottom:1px solid #f0e8ff;
  background:#F3F2EF;
}
.auth-country-picker__search{
  width:100%;
  height:42px;
  border:1px solid #e4d4ff;
  border-radius:12px;
  padding:0 12px;
  font-family:inherit;
  font-size:14px;
  outline:none;
}
.auth-country-picker__search:focus{
  border-color:#000000;
}
.auth-country-picker__list{
  max-height:220px;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:6px;
}
.auth-country-picker__option{
  display:block;
  width:100%;
  border:0;
  background:transparent;
  text-align:start;
  padding:10px 12px;
  border-radius:10px;
  font-family:inherit;
  font-size:14px;
  font-weight:700;
  color:#3b2a55;
  cursor:pointer;
}
.auth-country-picker__option:hover,
.auth-country-picker__option:focus{
  background:#f5efff;
  outline:none;
}
.auth-country-picker__option.is-selected{
  background:#F3F2EF;
  color:#0B1426;
}
.auth-country-picker__option[hidden]{
  display:none;
}

.auth-form-pro--register .auth-submit-pro{
  margin-top:8px;
}

@media (max-width:639px){
  .auth-phone-prefix-picker.is-open .auth-phone-prefix__panel,
  .auth-country-picker.is-open .auth-country-picker__panel{
    position:fixed;
    top:auto;
    bottom:0;
    left:0;
    right:0;
    width:100%;
    max-width:none;
    max-height:min(55vh,420px);
    border-radius:18px 18px 0 0;
    z-index:10003;
    box-shadow:0 -12px 40px rgba(17,24,39,.18);
  }
  .auth-phone-prefix-picker.is-open .auth-phone-prefix__panel{
    display:flex;
  }
  .auth-country-picker.is-open .auth-country-picker__panel{
    display:block;
  }
  .auth-phone-prefix__close,
  .auth-country-picker__close{
    display:flex;
    align-items:center;
    justify-content:center;
    align-self:flex-end;
    margin:8px 10px 0;
    width:36px;
    height:36px;
    border:0;
    border-radius:50%;
    background:#f1f5f9;
    color:#475569;
    font-size:22px;
    line-height:1;
    cursor:pointer;
    font-family:inherit;
    flex-shrink:0;
  }
  .auth-phone-prefix__list,
  .auth-country-picker__list{
    max-height:calc(min(55vh,420px) - 60px);
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    touch-action:pan-y;
  }
  .auth-phone-prefix__option,
  .auth-country-picker__option{
    touch-action:manipulation;
    -webkit-tap-highlight-color:transparent;
  }
  .auth-phone-prefix-picker.is-open .auth-phone-prefix__panel,
  .auth-country-picker.is-open .auth-country-picker__panel{
    touch-action:pan-y;
  }
}
