/* ==================== صفحات احراز هویت ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  --bg: #0a0f1e;
  --primary: #4361ee;
  --cyan: #4cc9f0;
  --text: #eaf0ff;
  --text-2: #9aa8cf;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  line-height: 1.8;
}

.bg-animation {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px circle at 15% 15%, rgba(67, 97, 238, .22), transparent 45%),
    radial-gradient(800px circle at 85% 80%, rgba(76, 201, 240, .16), transparent 45%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: -50%; z-index: -1;
  background-image:
    linear-gradient(rgba(76, 201, 240, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 201, 240, .055) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(700px) rotateX(58deg) translateY(-12%);
  opacity: .7;
}
.orb { position: fixed; border-radius: 50%; filter: blur(90px); z-index: -1; pointer-events: none; opacity: .45; }
.orb-1 { width: 400px; height: 400px; background: #4361ee; top: -120px; right: -110px; }
.orb-2 { width: 320px; height: 320px; background: #4cc9f0; bottom: 8%; left: -100px; }

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 20px 40px;
}

.back-home {
  position: fixed;
  top: 22px;
  right: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-size: .86rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  transition: all .18s ease;
}
.back-home:hover { color: #fff; border-color: var(--cyan); }
.back-home .icon { width: 17px; height: 17px; stroke: currentColor; fill: none; }

.auth-card {
  width: 100%;
  max-width: 470px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px;
  padding: 34px 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}

.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head img { width: 54px; height: 54px; margin: 0 auto 12px; }
.auth-head h1 { font-size: 1.42rem; font-weight: 800; color: #fff; }
.auth-head p { font-size: .88rem; color: var(--text-2); margin-top: 3px; }

.role-tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, .25);
  padding: 6px;
  border-radius: 14px;
  margin-bottom: 22px;
}
.role-tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: .87rem;
  font-weight: 700;
  transition: all .2s ease;
}
.role-tabs button.active {
  background: linear-gradient(135deg, #4361ee, #4cc9f0);
  color: #fff;
  box-shadow: 0 4px 14px rgba(67, 97, 238, .4);
}

.auth-form .field { margin-bottom: 16px; }
.auth-form label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: #a8b6d8;
  margin-bottom: 7px;
}
.input-wrap { position: relative; }
.input-wrap > .icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  stroke: #5b6b94;
  fill: none;
  pointer-events: none;
}
.input-wrap input,
.input-wrap select {
  width: 100%;
  padding: 11px 42px 11px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(0, 0, 0, .25);
  color: #fff;
  font-family: inherit;
  font-size: .92rem;
  outline: none;
  transition: all .15s ease;
}
.input-wrap select { padding-left: 14px; }
.input-wrap select option { background: #11182d; color: #fff; }
.input-wrap input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(76, 201, 240, .15);
}
.input-wrap input::placeholder { color: #5b6b94; }
.toggle-pass {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #5b6b94;
  padding: 4px;
}
.toggle-pass .icon { width: 18px; height: 18px; stroke: currentColor; fill: none; }

.captcha-row { display: flex; gap: 11px; align-items: center; }
.captcha-row .input-wrap { flex: 1; }
.captcha-img {
  height: 46px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  cursor: pointer;
  flex-shrink: 0;
}

.btn-submit {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4361ee, #5b7cf7);
  color: #fff;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(67, 97, 238, .45);
  transition: all .18s ease;
  margin-top: 6px;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(67, 97, 238, .6);
}

.alert {
  border-radius: 13px;
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: .87rem;
}
.alert-error {
  background: rgba(239, 71, 111, .12);
  border: 1px solid rgba(239, 71, 111, .38);
  color: #ffb3c6;
}
.alert-info {
  background: rgba(76, 201, 240, .1);
  border: 1px solid rgba(76, 201, 240, .3);
  color: #a8e4f7;
}
.alert ul { padding-right: 18px; }
.alert li { margin-bottom: 3px; }

.auth-foot {
  text-align: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  font-size: .87rem;
  color: var(--text-2);
}
.auth-foot a { color: var(--cyan); font-weight: 700; }

.form-hint {
  font-size: .78rem;
  color: #6b7ba3;
  margin-top: 6px;
  line-height: 1.7;
}
