/* /var/www/html/driver/forgot/style.css */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --silver-50: #F6F7F8;
  --silver-100: #E5E7EA;
  --silver-200: #D1D3D6;
  --silver-300: #B8BFC6;
  --silver-400: #A0A6AD;
  --blue-900: #02045C;
  --blue-800: #0710A8;
  --blue-700: #0810A8;
  --blue-600: #071BE8;
  --blue-500: #0D47A1;
  --blue-400: #1565C0;
  --blue-300: #1976D2;
  --blue-200: #1E88E5;
  --blue-100: #2196F3;
  --black-900: #000000;
  --black-700: #111111;
  --fd-border: rgba(0, 0, 0, 0.1);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --red: #ef4444;
  --green: #22c55e;
  --text: #000000;
  --muted: #333333;
  --gold: #D4AF37;
  --gold-soft: #F0D060;
}

html, body {
  height: 100%;
  background: linear-gradient(90deg, var(--silver-300), var(--silver-50), var(--silver-200), var(--silver-400), var(--silver-100));
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-family: 'Amiri', 'Inter', serif;
}

/* ===== BACKGROUND ===== */
.fd-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(90deg, var(--silver-300), var(--silver-50), var(--silver-200), var(--silver-400), var(--silver-100));
  z-index: 0;
  pointer-events: none;
}

.fd-wave {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.fd-wave-1 {
  width: 800px;
  height: 800px;
  top: -250px;
  right: -150px;
  background: radial-gradient(circle, rgba(0,0,0,0.05) 0%, transparent 70%);
  animation: waveFloat1 10s ease-in-out infinite;
}

.fd-wave-2 {
  width: 600px;
  height: 600px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(7,16,168,0.15) 0%, transparent 70%);
  animation: waveFloat2 13s ease-in-out infinite;
}

@keyframes waveFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes waveFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -40px) scale(1.06); }
}

.fd-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(1px 1px at 10% 15%, rgba(0,0,0,0.3), transparent),
              radial-gradient(1px 1px at 25% 45%, rgba(0,0,0,0.2), transparent),
              radial-gradient(1.5px 1.5px at 40% 8%, rgba(7,16,168,0.4), transparent),
              radial-gradient(1px 1px at 60% 70%, rgba(0,0,0,0.2), transparent),
              radial-gradient(1.5px 1.5px at 75% 22%, rgba(7,16,168,0.3), transparent),
              radial-gradient(1px 1px at 88% 78%, rgba(0,0,0,0.25), transparent);
  background-size: 200px 200px;
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

/* ===== HEADER ===== */
.fd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 8px 20px;
  background: rgba(246,247,248,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--fd-border);
}

.fd-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.fd-logo-box {
  width: 20px;
  height: 20px;
}

.fd-logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.fd-brand-text {
  display: flex;
  flex-direction: column;
}

.fd-brand-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--blue-700);
  letter-spacing: 0.3px;
}

.fd-brand-tagline {
  font-size: 11px;
  color: #444;
  margin-top: 1px;
}

.fd-langbtn {
  appearance: none;
  border: 1px solid var(--fd-border);
  background: var(--silver-100);
  color: var(--text);
  border-radius: 30px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: all var(--transition);
}

.fd-langbtn:hover {
  border-color: var(--blue-700);
  background: rgba(7,16,168,0.1);
  box-shadow: 0 0 12px rgba(7,16,168,0.3);
}

.fd-langbtn__caret { opacity: 0.6; font-size: 10px; }

/* ===== WRAP + CARD ===== */
.fd-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px 40px;
}

.fd-card {
  width: min(560px, 100%);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 36px;
  border: 1px solid rgba(7,16,168,0.25);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12), 0 0 50px rgba(7,27,232,0.15);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.brand-logo {
  width: 60px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

.fd-head { padding: 8px 0 10px; text-align: center; }

.fd-kicker {
  font-size: 12px;
  color: var(--blue-700);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 8px;
}

.fd-title {
  margin: 10px 0 6px;
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 800;
  color: #000;
}

.fd-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* Alerts */
.fd-alert {
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(7,16,168,0.2);
  background: rgba(7,27,232,0.05);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.fd-alert__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  background: var(--blue-600);
  box-shadow: 0 0 12px rgba(7,27,232,0.2);
  flex-shrink: 0;
}

.fd-alert__text {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

/* ===== FORM ===== */
.fd-form { width: 100%; padding: 6px 0; }
.fd-field { margin-top: 14px; }

.fd-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  text-align: left;
}

html[lang="ar"] .fd-label { text-align: right; }

.fd-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.2);
  background: rgba(0,0,0,0.02);
  transition: 0.2s;
}

.fd-input:focus-within {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(7,27,232,0.1);
}

.fd-ico {
  opacity: 0.5;
  width: 22px;
  text-align: center;
  font-weight: 700;
  flex-shrink: 0;
}

.fd-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #000;
  font-size: 16px;
}

.fd-input input::placeholder { color: rgba(0,0,0,0.35); }

.fd-mini {
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.04);
  color: #555;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fd-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.fd-error {
  min-height: 16px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
}

/* ===== BUTTON ===== */
.fd-btn {
  width: 100%;
  margin-top: 16px;
  border: 0;
  cursor: pointer;
  border-radius: 20px;
  padding: 16px 16px;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, #0810A8, #071BE8, #1565C0);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(7,27,232,0.45);
  transition: all 0.25s;
}

.fd-btn__shine {
  position: absolute;
  inset: -50% -20%;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 55%);
  transform: rotate(18deg);
  opacity: 0.55;
}

.fd-btn__txt { position: relative; z-index: 2; }

.fd-btn__spinner {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: rgba(255,255,255,.75);
  transform: translateY(-50%);
  display: none;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.fd-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(7,27,232,0.7);
}

.fd-btn.is-loading .fd-btn__spinner { display: block; }
.fd-btn.is-loading { opacity: 0.85; cursor: wait; }
.fd-btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* System msg */
.fd-sys {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  min-height: 20px;
  font-weight: 600;
}

/* Footer link */
.fd-foot {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
}

.fd-link {
  color: var(--blue-700);
  text-decoration: none;
  font-weight: 700;
}

.fd-link:hover { text-decoration: underline; }

.fd-divider {
  height: 1px;
  background: var(--fd-border);
  margin: 16px 0;
  width: 100%;
}

/* Help box */
.fd-help {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--fd-border);
  text-align: center;
}

.fd-help__title {
  font-weight: 800;
  color: #000;
  margin-bottom: 6px;
  font-size: 15px;
}

.fd-help__text {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 12px;
}

.fd-help__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.fd-help__btn {
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(7,16,168,0.25);
  background: rgba(7,27,232,0.05);
  color: var(--blue-700);
  font-weight: 700;
  font-size: 13px;
  transition: 0.2s;
}

.fd-help__btn:hover {
  background: rgba(7,27,232,0.1);
  border-color: var(--blue-700);
}

/* ===== MODAL ===== */
.fd-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.fd-modal.is-open { display: block; }

.fd-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(2px);
}

.fd-modal__sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, 92vw);
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--fd-border);
  border-radius: 26px;
  box-shadow: 0 55px 180px rgba(0,0,0,0.3);
  padding: 24px;
}

.fd-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.fd-modal__title {
  font-weight: 900;
  color: var(--blue-700);
  font-size: 18px;
}

.fd-x {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid var(--fd-border);
  background: var(--silver-100);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fd-modal__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(7,16,168,0.2);
  background: rgba(7,27,232,0.05);
  color: #333;
  font-size: 13px;
  margin-bottom: 12px;
}

.fd-noteDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  background: var(--blue-600);
  flex-shrink: 0;
}

.fd-langlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 52vh;
  overflow: auto;
  padding-right: 2px;
}

.fd-langitem {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--fd-border);
  background: rgba(0,0,0,0.02);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font: inherit;
  transition: 0.2s;
}

.fd-langitem.is-active {
  border-color: var(--blue-700);
  background: rgba(7,27,232,0.05);
  box-shadow: 0 0 0 1px rgba(7,27,232,0.12) inset;
}

.fd-langitem__name { font-weight: 800; font-size: 15px; }

.fd-langitem__sub {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.fd-pill2 {
  padding: 8px 12px;
  border-radius: 50px;
  border: 1px solid rgba(7,16,168,0.25);
  background: rgba(7,27,232,0.05);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.fd-apply {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 18px;
  padding: 14px;
  font-weight: 800;
  font-size: 16px;
  background: linear-gradient(135deg, #0810A8, #071BE8, #1565C0);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(7,27,232,0.3);
}

/* ===== RTL FIXES ===== */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .fd-brand { flex-direction: row-reverse; }
html[dir="rtl"] .fd-brand-text { text-align: right; }
html[dir="rtl"] .fd-input { flex-direction: row-reverse; }
html[dir="rtl"] .fd-langitem { text-align: right; }

/* Mobile */
@media (max-width: 560px) {
  .fd-card { padding: 28px 20px; border-radius: 30px; }
  .fd-title { font-size: 28px; }
}

/* FD_MOBILE_ACCOUNT_FIX_20260928 */
@media (max-width: 700px){
 html,body{max-width:100%!important;overflow-x:hidden!important}
 .fd-header,.fd-topbar{padding-left:12px!important;padding-right:12px!important}
 .fd-header-inner,.fd-topbar{max-width:100%!important;box-sizing:border-box!important}
 .fd-brand{min-width:0!important;max-width:58%!important}
 .fd-langbtn,.fd-pill--lang{max-width:42vw!important;min-width:0!important;white-space:normal!important}
 .fd-modal__sheet{width:calc(100vw - 24px)!important;max-width:520px!important;max-height:calc(100dvh - 28px)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;box-sizing:border-box!important;overflow:hidden!important}
 .fd-langList,.fd-langlist{max-height:52dvh!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
 .fd-input{display:flex!important;align-items:center!important;min-width:0!important}
 .fd-input input{min-width:0!important;width:100%!important;box-sizing:border-box!important}
 .fd-ico{flex:0 0 auto!important}
 .fd-clear,.fd-paste{flex:0 0 auto!important}
}

.fd-logo-box{width:46px!important;height:54px!important;flex:0 0 46px!important}
@media(max-width:700px){
 .fd-header-inner{gap:10px!important}
 .fd-brand-name{font-size:20px!important}
 .fd-brand-tagline{font-size:10px!important}
 .fd-form,.fd-card{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
}

/* FD mobile top-brand logo correction 2026-09-29 */
@media (max-width: 760px){
  .fd-topbar .fd-logo-box{
    width:58px!important;
    height:68px!important;
    flex:0 0 58px!important;
  }
  .fd-topbar .fd-brand-name{font-size:22px!important}
  .fd-topbar .fd-brand-tagline{font-size:11px!important}
}

/* FD mobile language sheet viewport-safe fix 2026-09-29 */
@media (max-width:700px){
  .fd-modal{padding:0!important}
  .fd-modal__sheet{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    top:auto!important;
    bottom:max(14px,env(safe-area-inset-bottom))!important;
    transform:none!important;
    width:auto!important;
    max-width:none!important;
    height:auto!important;
    max-height:calc(100dvh - 42px - env(safe-area-inset-top))!important;
    padding:18px!important;
    border-radius:28px!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  .fd-modal__top,.fd-modal__note,.fd-global-lang-search,.fd-apply{flex:0 0 auto!important}
  .fd-langlist,.fd-langList{
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
    padding-bottom:6px!important;
  }
}
