/**
 * Login page — Abutic Dot shell (pairs with abutic-dot-home.css + body.ab-dot-login).
 */
body.ab-dot-home.ab-dot-login {
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex !important;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent !important;
}

body.ab-dot-home.ab-dot-login main.ab-dot-main.ab-dot-login-main {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  /* Beat abutic-dot-home.css `main.ab-dot-main { flex: none !important }` so main fills viewport */
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0;
  padding: 2.75rem 1rem 2.25rem;
  margin: 0 !important;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body.ab-dot-home.ab-dot-login main.ab-dot-main.ab-dot-login-main {
    padding: 3rem 1.25rem 3rem;
  }
}

/* Desktop: true vertical center — symmetric padding + at least full viewport height */
@media (min-width: 1024px) {
  body.ab-dot-home.ab-dot-login main.ab-dot-main.ab-dot-login-main {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 2.5rem 1.5rem 2.5rem !important;
  }
}

body.ab-dot-home.ab-dot-login .ab-dot-login-inner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Card */
body.ab-dot-home.ab-dot-login .ab-dot-login-shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--ab-dot-card-strong, #ffffff);
  border: 1px solid var(--ab-dot-card-border, rgba(15, 23, 42, 0.06));
  border-radius: 1.25rem;
  box-shadow: var(
    --ab-dot-shadow-lift,
    0 2px 8px rgba(15, 23, 42, 0.045),
    0 14px 36px rgba(30, 58, 138, 0.06)
  );
  color: #1d1d1f;
}

@media (min-width: 768px) {
  body.ab-dot-home.ab-dot-login .ab-dot-login-shell {
    max-width: 500px;
    padding: 2.5rem 2.25rem;
    border-radius: 1.5rem;
  }
}

@media (min-width: 1024px) {
  body.ab-dot-home.ab-dot-login .ab-dot-login-shell {
    max-width: 560px;
    padding: 2.75rem 2.5rem;
  }
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell * {
  box-sizing: border-box;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .brand {
  text-align: center;
  margin-bottom: 2rem;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .brand img {
  height: 320px;
  width: auto;
  max-width: 100%;
  display: inline-block;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-align: center;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .subtitle {
  text-align: center;
  color: #6e6e73;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 1.75rem;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .form-group {
  margin-bottom: 1.15rem;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #424245;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell input[type="email"],
body.ab-dot-home.ab-dot-login .ab-dot-login-shell input[type="password"],
body.ab-dot-home.ab-dot-login .ab-dot-login-shell input[type="text"] {
  width: 100%;
  height: 46px;
  padding: 0 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  color: #1d1d1f;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell input:focus {
  border-color: rgba(0, 102, 204, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.14);
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.35rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #0066cc;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .forgot {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .forgot:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell button[type="submit"] {
  width: 100%;
  height: 48px;
  background: linear-gradient(180deg, #1a7fff 0%, #0066cc 55%, #005cbf 100%);
  color: #fff;
  border: 0;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 80, 180, 0.2), 0 6px 18px rgba(0, 102, 204, 0.2);
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell button[type="submit"]:hover:not(:disabled) {
  filter: brightness(1.03);
  box-shadow: 0 2px 6px rgba(0, 80, 180, 0.25), 0 10px 26px rgba(0, 102, 204, 0.25);
  transform: translateY(-1px);
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .alert {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  margin-bottom: 1.15rem;
  font-size: 0.875rem;
  font-weight: 500;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .alert-info {
  background: rgba(0, 102, 204, 0.08);
  color: #1e40af;
  border: 1px solid rgba(0, 102, 204, 0.2);
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .alert-provision {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 1rem;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .alert-provision img {
  max-width: 100%;
  margin: 12px 0;
  border-radius: 8px;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .alert-provision code {
  display: block;
  background: rgba(5, 150, 105, 0.1);
  padding: 8px;
  border-radius: 6px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.8125rem;
  margin: 8px 0;
  word-break: break-all;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #86868b;
  margin: 1.5rem 0;
  font-size: 0.8125rem;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .divider::before,
body.ab-dot-home.ab-dot-login .ab-dot-login-shell .divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .divider::before {
  margin-right: 12px;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .divider::after {
  margin-left: 12px;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  height: 46px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #fff;
  color: #1d1d1f;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .social-btn:hover {
  background: var(--ab-dot-surface, #f7f9fc);
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .signup {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #6e6e73;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .signup a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .signup a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .back {
  text-align: center;
  margin-top: 1rem;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .back a {
  font-size: 0.8125rem;
  color: #86868b;
  text-decoration: none;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .back a:hover {
  color: #1d1d1f;
}

body.ab-dot-home.ab-dot-login .hidden {
  display: none !important;
}

body.ab-dot-home.ab-dot-login .ab-dot-login-shell .spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ab-dot-login-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes ab-dot-login-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  body.ab-dot-home.ab-dot-login .ab-dot-login-shell {
    padding: 1.75rem 1.25rem;
  }

  body.ab-dot-home.ab-dot-login .ab-dot-login-shell h1 {
    font-size: 1.375rem;
  }

  body.ab-dot-home.ab-dot-login .ab-dot-login-shell .brand img {
    height: min(288px, 72vw);
  }
}

/* Footer from footert if ever included */
body.ab-dot-home.ab-dot-login footer {
  background: var(--ab-dot-canvas, #fafbfc);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
