/* =====================================================================
   تەواف — شێوازی لاپەڕەکانی چوونەژوورەوە و بەشداربوون
   دوو بەش: بەشی سەوز (برند) + بەشی سپی (فۆرم)، بە کەنارێکی خوارەوە.
   لە مۆبایلدا لەسەر یەکتر دادەنرێن.
   ===================================================================== */

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: #edf3f3;
  font-family: 'IBM Plex Sans Arabic', 'Noto Kufi Arabic', sans-serif;
}

.auth-shell {
  width: 100%;
  max-width: 940px;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 70px -30px rgba(7, 38, 32, .45);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  position: relative;
}

/* ───── بەشی برند (سەوز) ───── */
.auth-brand {
  position: relative;
  background: linear-gradient(150deg, #0a5754 0%, #05403e 45%, #022726 100%);
  color: #fff;
  padding: 46px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;          /* بەشی سەوز لەسەر بەشی سپییە تاکو کەنارەکە دەربکەوێت */
}

/* کەنارەی خوار — بەشی سەوز دەچێتە ناو بەشی سپییەوە.
   بە ئەنقەست بە هەمان ڕەنگی سەوز، نەک سپی، تاکو هەرگیز دەق نەپۆشێت. */
.auth-brand::after {
  content: '';
  position: absolute;
  top: -18%;
  left: -11%;
  width: 34%;
  height: 136%;
  background: linear-gradient(150deg, #0a5754, #05403e 60%, #033330);
  border-radius: 50%;
  z-index: -1;         /* لە پشتی دەقەکانەوە، بەڵام لەسەر بەشی سپی */
}
.auth-brand > * { position: relative; z-index: 2; }

.auth-logo {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  margin-bottom: 14px;
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .5);
}
.auth-logo svg { width: 46px; height: 46px; }

.auth-brand .wordmark {
  font-weight: 800; font-size: 1.05rem;
  letter-spacing: .04em; margin-bottom: 34px;
  color: #f2f6f6;
}
.auth-brand h2 {
  margin: 0 0 12px;
  font-size: 2rem; line-height: 1.35; font-weight: 800;
}
.auth-brand p {
  margin: 0 0 30px;
  font-size: .92rem; line-height: 2;
  opacity: .82; max-width: 260px;
}

.auth-ghost {
  display: inline-block;
  padding: 12px 44px;
  border: 1.6px solid rgba(255, 255, 255, .85);
  border-radius: 99px;
  color: #fff; text-decoration: none;
  font-weight: 800; font-size: .88rem;
  letter-spacing: .06em;
  transition: background .18s, color .18s;
}
.auth-ghost:hover { background: #fff; color: #05403e; }

.auth-brand .foot {
  margin-top: 34px; margin-bottom: 0;
  font-size: .68rem; letter-spacing: .1em;
  opacity: .55;
}

/* ───── بەشی فۆرم (سپی) ───── */
.auth-form {
  padding: 48px 44px;
  padding-inline-start: 82px;   /* بۆشایی بۆ کەنارە سەوزەکە */
  display: flex; flex-direction: column; justify-content: center;
}
.auth-form h1 {
  margin: 0 0 6px;
  font-size: 2.1rem; font-weight: 800;
  color: #05403e; text-align: center;
}
.auth-form .sub {
  margin: 0 0 28px;
  text-align: center; color: #64748b; font-size: .92rem;
}

/* خانەکان — گلۆلەیی و نەرم */
.auth-field { margin-bottom: 14px; }
.auth-field > label {
  display: block; font-size: .8rem; font-weight: 700;
  color: #475569; margin-bottom: 6px; padding-inline-start: 6px;
}
.auth-input {
  width: 100%; box-sizing: border-box;
  padding: 15px 20px;
  background: #f0f4f4;
  border: 1.5px solid transparent;
  border-radius: 99px;
  font-size: .98rem; font-family: inherit; color: #0f172a;
}
.auth-input::placeholder { color: #90acab; }
.auth-input:focus {
  outline: none; background: #fff;
  border-color: #05403e;
  box-shadow: 0 0 0 4px rgba(15, 76, 63, .1);
}

/* خانەی ژمارەی مۆبایل */
.auth-phone { display: flex; align-items: stretch; }
.auth-phone .cc {
  display: grid; place-items: center;
  padding: 0 18px;
  background: #e2eaea; color: #05403e;
  border-radius: 0 99px 99px 0;
  font-weight: 800; font-size: .88rem;
  direction: ltr; white-space: nowrap;
}
.auth-phone .auth-input {
  border-radius: 99px 0 0 99px;
  direction: ltr; text-align: left;
  letter-spacing: .8px; font-weight: 600; font-size: 1.05rem;
}

.auth-mini {
  display: block; text-align: center;
  margin: 4px 0 18px;
  font-size: .8rem; color: #64748b; text-decoration: none;
}
.auth-mini:hover { color: #05403e; }

.auth-submit {
  display: block; width: 62%; margin: 6px auto 0;
  padding: 14px; border: 0; border-radius: 99px;
  background: linear-gradient(135deg, #0a5754, #05403e);
  color: #fff; font-size: 1rem; font-weight: 800;
  font-family: inherit; letter-spacing: .04em; cursor: pointer;
  box-shadow: 0 12px 26px -14px rgba(15, 76, 63, .9);
  transition: transform .15s, box-shadow .15s;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(15,76,63,.95); }

.auth-swap {
  margin: 24px 0 0; text-align: center;
  color: #475569; font-size: .93rem;
}
.auth-swap a { color: #05403e; font-weight: 800; text-decoration: none; }

/* ───── پەیامەکان ───── */
.auth-msg {
  border-radius: 16px; padding: 12px 16px;
  margin-bottom: 16px; font-size: .87rem; line-height: 1.9;
}
.auth-msg.err  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.auth-msg.ok   { background: #f8fafa; border: 1px solid #d3dfdf; color: #033330; }
.auth-msg.note { background: #f7f6f3; border: 1px solid #cccabb; color: #92400e; }
.auth-msg a { color: inherit; font-weight: 800; }

/* ───── جیاکەرەوە و دوگمەکانی دەرەکی ───── */
.auth-or {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 16px; color: #94a3b8; font-size: .78rem;
}
.auth-or::before, .auth-or::after {
  content: ''; flex: 1; height: 1px; background: #e2e8f0;
}
.auth-social { display: flex; gap: 10px; }
.auth-social a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border: 1.5px solid #e2e8f0; border-radius: 99px;
  color: #334155; text-decoration: none; font-weight: 700; font-size: .85rem;
  background: #fff;
}
.auth-social a:hover { border-color: #05403e; color: #05403e; }

.auth-back {
  display: block; text-align: center; margin-top: 22px;
  color: #94a3b8; font-size: .82rem; text-decoration: none;
}
.auth-back:hover { color: #05403e; }

/* ═════════ مۆبایل ═════════ */
@media (max-width: 780px) {
  .auth-page  { padding: 0; background: #fff; align-items: stretch; }
  .auth-shell {
    grid-template-columns: 1fr;
    border-radius: 0; box-shadow: none;
    min-height: 100vh; max-width: 100%;
  }
  .auth-brand {
    padding: 34px 28px 58px;
    border-radius: 0 0 42px 42px;
  }
  .auth-brand::after { display: none; }
  .auth-logo { width: 62px; height: 62px; margin-bottom: 10px; }
  .auth-logo svg { width: 36px; height: 36px; }
  .auth-brand .wordmark { margin-bottom: 18px; }
  .auth-brand h2 { font-size: 1.5rem; margin-bottom: 8px; }
  .auth-brand p  { font-size: .86rem; margin-bottom: 20px; }
  .auth-brand .foot { display: none; }
  .auth-ghost { padding: 10px 34px; font-size: .82rem; }

  .auth-form { padding: 30px 22px 44px; padding-inline-start: 22px; }
  .auth-form h1 { font-size: 1.6rem; }
  .auth-form .sub { margin-bottom: 22px; font-size: .87rem; }
  .auth-submit { width: 100%; }
}
