/* MorPay Dark Auth — نفس هوية الصفحة الرئيسية */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap");

body.auth-dark {
  margin: 0;
  min-height: 100vh;
  font-family: "Cairo", sans-serif;
  color: #fff;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(138, 43, 226, 0.22), transparent 55%),
    radial-gradient(700px 420px at 90% 30%, rgba(253, 209, 0, 0.08), transparent 50%),
    linear-gradient(180deg, #0d0221 0%, #12062e 40%, #0a0118 100%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.auth-dark * { box-sizing: border-box; }

.ad-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 1, 24, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-nav-inner {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ad-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
}

.ad-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.ad-links {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.ad-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
}

.ad-links a:hover { color: #fff; }
.ad-links a.is-on {
  color: #fff;
  box-shadow: inset 0 -2px 0 #fdd100;
}

.ad-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ad-profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
}

.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.ad-btn-yellow {
  background: #fdd100;
  color: #1a1200;
  box-shadow: 0 0 22px rgba(253, 209, 0, 0.3);
}

.ad-btn-yellow:hover { filter: brightness(1.05); color: #1a1200; }

.ad-main {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
}

.ad-card {
  width: 100%;
  max-width: 440px;
  background: rgba(22, 10, 48, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  padding: 1.7rem 1.4rem 1.45rem;
  position: relative;
}

.ad-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  display: block;
  border-radius: 16px;
  box-shadow: 0 0 28px rgba(253, 209, 0, 0.18);
}

.ad-card h1 {
  text-align: center;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 1.15rem;
}

.ad-card h1 span { color: #fdd100; }

.ad-hint {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
  margin: -0.4rem 0 1rem;
}

.ad-card .form-group { margin-bottom: 0.9rem; }

.ad-card label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.ad-card .input,
.ad-card .input-wrap {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ad-card .input {
  padding: 0.85rem 0.95rem;
  outline: none;
  font: inherit;
}

.ad-card .input::placeholder { color: rgba(255, 255, 255, 0.35); }

.ad-card .input:focus,
.ad-card .input-wrap:focus-within {
  border-color: rgba(253, 209, 0, 0.65);
  box-shadow: 0 0 0 4px rgba(253, 209, 0, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.ad-card .input-wrap {
  display: flex;
  align-items: center;
  padding-left: 0.45rem;
}

.ad-card .input-wrap .input {
  border: none;
  background: transparent;
  flex: 1;
  box-shadow: none;
}

.ad-card .input-wrap .input:focus { box-shadow: none; }

.ad-card .toggle-pass {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 8px;
}

.ad-card .toggle-pass:hover { color: #fdd100; }

.ad-card .form-link {
  display: inline-block;
  margin: 0.1rem 0 1rem;
  color: #fdd100;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

.ad-submit {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 800;
  font-size: 1.02rem;
  background: #fdd100;
  color: #1a1200;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(253, 209, 0, 0.28);
}

.ad-submit:hover { filter: brightness(1.05); }

.ad-submit.ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
  margin-bottom: 0.85rem;
}

.ad-submit.ghost:hover { background: rgba(255, 255, 255, 0.06); }

.ad-footer {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.ad-footer a {
  color: #fdd100;
  font-weight: 700;
  text-decoration: none;
}

.ad-back {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
}

@media (max-width: 800px) {
  .ad-links { display: none; }
}

/* Toast on dark auth pages */
.toast-stack {
  position: fixed;
  top: 84px;
  left: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: min(360px, calc(100vw - 2rem));
}

.toast {
  background: rgba(22, 10, 48, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  padding: 0.85rem 0.95rem 0.7rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  overflow: hidden;
  position: relative;
  color: #fff;
}

.toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toast-body { flex: 1; font-size: 0.88rem; padding-bottom: 0.35rem; }
.toast-close {
  border: none; background: transparent; color: rgba(255,255,255,.5);
  cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.toast-bar {
  position: absolute; bottom: 0; right: 0; height: 3px;
  background: #fdd100; animation: ad-toast-bar 4s linear forwards;
}
@keyframes ad-toast-bar { from { width: 100%; } to { width: 0%; } }

