/* بوابة الدخول المركزية — صقل احترافي */

.gw-auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(150, 26, 65, 0.06), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 90%, rgba(185, 151, 91, 0.08), transparent 50%),
    linear-gradient(165deg, #faf8f5 0%, #f4ede6 100%);
  font-family: "Tajawal", var(--font-ar, system-ui, sans-serif);
  padding: 1.25rem;
}

.gw-auth {
  width: 100%;
  max-width: 420px;
}

.gw-auth__card {
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(150, 26, 65, 0.08);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 12px 40px rgba(20, 43, 35, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.gw-auth__brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #961A41;
  text-decoration: none;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.gw-auth__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin: 0;
  line-height: 1.45;
}

.gw-auth__sub {
  margin: -0.65rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.55;
}

.gw-auth__notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  font-size: 0.8125rem;
  color: #6d5a00;
  line-height: 1.6;
}

.gw-auth__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 0.15rem;
}

.gw-auth-body .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gw-auth-body .field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.gw-auth-body .field__input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border: 1px solid #e5e0d8;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gw-auth-body .field__input:hover {
  border-color: #d4cdc3;
}

.gw-auth-body .field__input:focus {
  outline: none;
  border-color: #961A41;
  box-shadow: 0 0 0 3px rgba(150, 26, 65, 0.14);
}

.gw-auth-body .field__input::placeholder {
  color: #9ca3af;
}

.gw-pass-wrap {
  position: relative;
  display: block;
}

.gw-pass-wrap .field__input {
  padding-inline-end: 2.85rem;
}

.gw-pass-toggle {
  position: absolute;
  top: 50%;
  left: 0.55rem;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  border-radius: 0.5rem;
  padding: 0;
}

.gw-pass-toggle:hover {
  color: #961A41;
  background: rgba(150, 26, 65, 0.06);
}

.gw-pass-toggle:focus-visible {
  outline: 2px solid #961A41;
  outline-offset: 1px;
}

.gw-pass-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gw-auth__error {
  font-size: 0.8125rem;
  color: #b3261e;
  margin: 0;
  padding: 0.65rem 0.85rem;
  background: #fdf0ef;
  border-radius: 0.75rem;
  border: 1px solid #f0c7c3;
  line-height: 1.5;
}

.gw-auth__submit {
  width: 100%;
  margin-top: 0.35rem;
  min-height: 48px;
  background: #961A41 !important;
  border-color: #961A41 !important;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.975rem;
  border-radius: 0.75rem;
  letter-spacing: 0.01em;
}

.gw-auth__submit:hover { opacity: 0.93; }
.gw-auth__submit:disabled { opacity: 0.65; cursor: not-allowed; }

.gw-auth__back {
  font-size: 0.8125rem;
  color: #6b7280;
  text-decoration: none;
  text-align: center;
  transition: color 0.2s;
  padding-top: 0.15rem;
}
.gw-auth__back:hover { color: #961A41; }

@media (max-width: 430px) {
  .gw-auth__card { padding: 2rem 1.35rem 1.75rem; gap: 1.15rem; }
  .gw-auth-body { padding: 1rem; }
}

@media (max-width: 360px) {
  .gw-auth__brand { font-size: 1.35rem; }
  .gw-auth__title { font-size: 1.05rem; }
}
