/* Login standalone + PIN boxes + session lock overlay */

body.login-standalone {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px 16px;
  background: #f0f2f0;
}

.login-standalone-main {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.login-standalone-card {
  width: 100%;
  padding: 32px 28px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.login-standalone-card.base-boxcampos {
  gap: 14px;
}

.login-standalone-logo {
  display: block;
  margin: 0 auto;
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

.autodocs-auth-msg {
  color: #b00020;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  margin: 0;
  min-height: 1.2em;
}

.login-standalone-submit {
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 14px 22px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background-color: var(--brand-accent, var(--cor-accent, #025aa4));
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.autodocs-pin-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.autodocs-pin-box {
  width: 44px;
  height: 48px;
  box-sizing: border-box;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  color: var(--cinza-titulos, #222);
  outline: none;
}

.autodocs-pin-box:focus {
  border-color: var(--brand-accent, var(--cor-accent, #025aa4));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-accent, #025aa4) 25%, transparent);
}

/* —— Session lock overlay —— */
#autodocs-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  /* Mesmo fundo sólido do login — sem blur */
  background: #f0f2f0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
  transition: opacity 0.38s ease;
}

#autodocs-lock-overlay.is-open {
  display: flex;
}

#autodocs-lock-overlay.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.autodocs-lock-loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

#autodocs-lock-overlay.is-ready .autodocs-lock-loading,
.autodocs-lock-loading[hidden] {
  display: none !important;
}

.autodocs-lock-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #d8dcd8;
  border-top-color: var(--brand-accent, #025aa4);
  border-radius: 50%;
  animation: autodocs-lock-spin 0.7s linear infinite;
}

@keyframes autodocs-lock-spin {
  to {
    transform: rotate(360deg);
  }
}

.autodocs-lock-card {
  width: 100%;
  max-width: 400px;
  padding: 28px 26px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#autodocs-lock-overlay.is-loading .autodocs-lock-card:not([hidden]) {
  opacity: 0;
  transform: translateY(6px) scale(0.98);
}

.autodocs-lock-card[hidden] {
  display: none !important;
}

#autodocs-lock-overlay .autodocs-pin-box {
  background: #fff;
  border-color: #e0e0e0;
  color: #222;
}

.autodocs-lock-brand {
  margin: 0 0 4px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-accent, #025aa4);
}

.autodocs-lock-status {
  margin: 0 0 18px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.autodocs-lock-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #eee;
  margin-bottom: 18px;
  background: #fff;
}

.autodocs-lock-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-accent, #025aa4);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.autodocs-lock-user-name {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.autodocs-lock-user-email {
  margin: 2px 0 0;
  font-size: 12px;
  color: #888;
}

.autodocs-lock-label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.autodocs-lock-msg {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: 12px;
  color: #b00020;
}

.autodocs-lock-submit {
  width: 100%;
  margin-top: 16px;
  padding: 14px 22px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: var(--brand-accent, #025aa4);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.autodocs-lock-links {
  margin: 14px 0 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
}

.autodocs-lock-links button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--brand-accent, #025aa4);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
}
