/* NEXUS_CONDOMINIO_LOGIN_LAYOUT_V1 - layout comum aos acessos Nexus. */
.nexus-auth-page, .nexus-auth-page * { box-sizing: border-box; }
.nexus-auth-page {
  --nexus-blue: #2563eb;
  --nexus-blue-dark: #1d4ed8;
  margin: 0;
  padding: clamp(8px, 1.4vh, 20px) clamp(12px, 2vw, 24px);
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f7fa;
  color: #132635;
  font: 15px/1.4 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.nexus-auth-page [hidden] { display: none !important; }
.nexus-auth-card {
  flex: 0 0 auto;
  width: 100%;
  max-width: 450px;
  margin: auto;
  padding: clamp(16px, 2.6vh, 28px);
  border: 0;
  border-top: 4px solid var(--nexus-blue);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
.nexus-auth-heading { margin: 0 0 18px; text-align: center; }
.nexus-auth-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 260px);
  max-height: clamp(48px, 12vh, 112px);
  max-height: clamp(48px, 12dvh, 112px);
  margin: 0 auto 10px;
  object-fit: contain;
}
.nexus-auth-heading h1 { margin: 0 0 4px; font-size: 22px; line-height: 1.2; }
.nexus-auth-heading p { margin: 0; font-size: 14px; color: #61718a; }
.nexus-auth-heading strong, .nexus-auth-footer span { color: var(--nexus-blue); font-weight: 800; }
.nexus-auth-heading .nexus-auth-company { margin-top: 8px; overflow-wrap: anywhere; }
.nexus-auth-field { min-width: 0; margin: 0 0 12px; }
.nexus-auth-label { display: block; margin: 0 0 4px; color: #566575; font-size: 13px; font-weight: 700; }
.nexus-auth-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #d5dee8;
  border-radius: 10px;
  background: #f8fafc;
  color: #132635;
  font: inherit;
}
.nexus-auth-input:focus { outline: 3px solid #dbeafe; outline-offset: 1px; border-color: var(--nexus-blue); background: #fff; }
.nexus-auth-input[readonly] { background: #f1f5f9; color: #526376; }
.nexus-auth-password { position: relative; }
.nexus-auth-password .nexus-auth-input { padding-right: 52px; }
.nexus-auth-page .nexus-password-toggle {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #586c86;
  cursor: pointer;
}
.nexus-password-toggle svg { display: block; width: 20px; height: 20px; }
.nexus-password-toggle:hover { background: #eaf1ff; color: var(--nexus-blue); }
.nexus-password-toggle:focus-visible { outline: 3px solid #93c5fd; outline-offset: -2px; }
.nexus-auth-submit {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #2563eb, #3985f5);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nexus-auth-submit:hover { background: var(--nexus-blue-dark); }
.nexus-auth-submit:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.nexus-auth-help { margin: 8px 0 0; color: #64748b; font-size: 13px; }
.nexus-auth-help a { color: var(--nexus-blue-dark); text-underline-offset: 3px; }
.nexus-auth-error { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #fecaca; border-radius: 8px; background: #fff1f2; color: #9f1239; font-size: 14px; overflow-wrap: anywhere; }
.nexus-auth-footer { margin-top: 18px; padding-top: 12px; border-top: 1px solid #e1e8ef; text-align: center; font-size: 12px; }
.nexus-auth-footer p { margin: 0 0 3px; color: #61718a; }
@media (max-height: 720px) {
  .nexus-auth-heading { margin-bottom: 12px; }
  .nexus-auth-logo { max-height: 64px; margin-bottom: 6px; }
  .nexus-auth-heading h1 { font-size: 20px; }
  .nexus-auth-field { margin-bottom: 10px; }
  .nexus-auth-footer { margin-top: 12px; padding-top: 10px; }
}
