/* Account auth — aligned with admin-theme central tokens */

:root {
  --auth-ink: var(--app-text, #2A2A2A);
  --auth-muted: var(--app-text-muted, #6B6B6B);
  --auth-line: var(--app-border, #E5E5E5);
  --auth-panel: var(--app-surface, #FFFFFF);
  --auth-bg: var(--app-bg, #FFFFFF);
  --auth-accent: var(--app-primary, #454545);
  --auth-accent-hover: var(--app-primary-dark, #2E2E2E);
  --auth-accent-soft: var(--app-primary-soft, #F0F0F0);
  --auth-focus: var(--app-accent, #FF6000);
  --auth-warn: var(--app-warning, #b45309);
  --auth-warn-bg: var(--app-warning-soft, #fef3c7);
  --auth-danger: var(--app-danger, #b91c1c);
  --auth-success: var(--app-success, #15803d);
  --auth-success-bg: var(--app-success-soft, #dcfce7);
  --auth-radius: var(--app-radius, 8px);
  --auth-shadow: var(--app-shadow, 0 1px 2px rgba(44, 54, 58, 0.06));
}

.auth-page {
  min-height: 100vh;
  margin: 0;
  font-family: var(--app-font-family, "Vazirmatn", Tahoma, Arial, sans-serif);
  color: var(--auth-ink);
  background: var(--auth-bg);
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-panel {
  width: 100%;
  max-width: 420px;
  background: var(--auth-panel);
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  overflow: hidden;
}

.auth-panel__accent {
  height: 3px;
  background: var(--auth-accent);
}

.auth-panel__body {
  padding: 1.75rem 1.5rem 1.5rem;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.auth-brand__mark {
  width: 44px;
  height: 44px;
  border-radius: var(--auth-radius);
  display: grid;
  place-items: center;
  background: var(--auth-accent-soft);
  color: var(--auth-accent);
  font-weight: 700;
  font-size: 1.05rem;
}

.auth-brand__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--auth-ink);
}

.auth-title {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--auth-ink);
}

.auth-lead {
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--auth-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.auth-notice {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--auth-radius);
  background: var(--auth-warn-bg);
  border: 1px solid #fde68a;
  color: var(--auth-warn);
  font-size: 0.86rem;
  line-height: 1.65;
}

.auth-notice__icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fde68a;
  font-weight: 700;
  font-size: 0.78rem;
}

.auth-hints {
  margin: 0 0 1.15rem;
  padding: 0.75rem 0.9rem;
  list-style: none;
  border-radius: var(--auth-radius);
  background: #f8fafc;
  border: 1px solid var(--auth-line);
  color: var(--auth-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.auth-hints li {
  position: relative;
  padding-right: 0.9rem;
}

.auth-hints li + li {
  margin-top: 0.15rem;
}

.auth-hints li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--auth-accent);
}

.auth-field {
  margin-bottom: 0.95rem;
}

.auth-field label,
.auth-field .form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--auth-ink);
}

.auth-field .form-control {
  min-height: 2.55rem;
  border-radius: 6px;
  border-color: #cbd5e1;
  padding: 0.5rem 0.8rem;
  font-size: 0.9375rem;
  color: var(--auth-ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field .form-control:focus {
  border-color: var(--auth-focus);
  box-shadow: 0 0 0 0.2rem rgba(255, 96, 0, 0.28);
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap .auth-password-input {
  padding-left: 2.75rem;
}

.auth-password-toggle {
  position: absolute;
  left: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: var(--auth-accent);
  background: var(--auth-accent-soft);
  outline: none;
}

.auth-password-toggle i {
  font-size: 1.1rem;
}

.auth-check {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.auth-check .form-check-label {
  color: var(--auth-muted);
  font-size: 0.88rem;
}

.auth-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.auth-btn-primary,
.auth-actions .btn-primary {
  min-height: 2.65rem;
  border: none;
  border-radius: 6px;
  background: var(--auth-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: background-color 0.15s ease;
}

.auth-btn-primary:hover,
.auth-actions .btn-primary:hover {
  background: var(--auth-accent-hover);
  color: #fff;
}

.auth-btn-secondary,
.auth-actions .btn-outline-secondary {
  min-height: 2.45rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--auth-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-btn-secondary:hover,
.auth-actions .btn-outline-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--auth-ink);
}

.auth-footer-links {
  margin-top: 1.15rem;
  text-align: center;
}

.auth-link {
  color: var(--auth-focus);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.auth-link:hover,
.auth-link:focus {
  color: var(--auth-accent);
  text-decoration: none;
}

.auth-validation,
.auth-page .validation-summary-errors {
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: var(--auth-danger);
  font-size: 0.86rem;
}

.auth-alert-success {
  margin-top: 1rem;
  margin-bottom: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
  background: var(--auth-success-bg);
  border: 1px solid #bbf7d0;
  color: var(--auth-success);
  font-size: 0.86rem;
}

.validation-summary-valid {
  display: none !important;
}

.field-validation-error,
.auth-page .text-danger {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--auth-danger) !important;
}

@media (max-width: 480px) {
  .auth-panel__body {
    padding: 1.35rem 1.1rem 1.2rem;
  }

  .auth-brand__name {
    font-size: 1.15rem;
  }
}
.auth-site-footer {
    position: fixed;
    right: 0;
    bottom: 20px;
    left: 0;
    z-index: 9999;
    text-align: center;
    font-size: 14px;
    pointer-events: none;
}

    .auth-site-footer a {
        position: relative;
        z-index: 10000;
        display: inline-block;
        color: #6c757d;
        text-decoration: none;
        cursor: pointer;
        pointer-events: auto;
    }

        .auth-site-footer a:hover {
            color: #212529;
            text-decoration: underline;
        }