/* Tela de acesso inspirada no painel App MASTER fornecido como referência. */
body.auth-screen {
  min-height: 100vh;
  overflow: hidden;
  background: #141b23;
}

body.auth-screen .system-bar {
  display: none !important;
}

body.auth-screen .auth-gate {
  position: fixed;
  inset: 0 !important;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px 16px;
  background: #141b23;
}

.auth-login-view .auth-login-card {
  width: min(100%, 460px);
  padding: 14px 28px 28px;
  border: 1px solid #3b4c60;
  border-radius: 7px;
  background: #222c39;
  box-shadow: none;
  color: #edf3fb;
  animation: auth-panel-enter .22s ease-out both;
}

.auth-login-heading h1 {
  margin: 0;
  color: #f4f7fc;
  font: 700 25px/1.25 'DM Sans', 'Segoe UI', sans-serif;
  letter-spacing: -.02em;
}

.auth-login-heading p {
  margin: 4px 0 27px;
  color: #b8c7d8;
  font-size: 13px;
}

.auth-login-card .auth-form {
  gap: 15px;
  margin: 0;
}

.auth-login-card .auth-form .field {
  gap: 8px;
}

.auth-login-card .auth-form .field label {
  color: #eff4fb;
  font-size: 12px;
  font-weight: 700;
}

.auth-login-card .auth-form .field input {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #40536a;
  border-radius: 6px;
  background: #202a37;
  color: #f5f8fc;
  font: 15px 'DM Sans', 'Segoe UI', sans-serif;
}

.auth-login-card .auth-form .field input::placeholder,
.auth-master-guard input::placeholder {
  color: #a8b7c8;
  opacity: 1;
}

.auth-login-card .auth-form .field input:focus,
.auth-master-guard input:focus {
  border-color: #3f9be8;
  outline: 2px solid #1976c533;
  outline-offset: 1px;
}

.auth-master-guard {
  display: grid;
  gap: 5px;
  padding: 11px 12px 12px;
  border: 1px solid #40536a;
  border-radius: 6px;
  background: #151c25;
  animation: auth-panel-enter .18s ease-out both;
}

.auth-master-guard[hidden] {
  display: none !important;
}

.auth-master-guard b {
  color: #f4f7fc;
  font-size: 12px;
}

.auth-master-guard span {
  color: #edf3fb;
  font-size: 12px;
}

.auth-master-guard small {
  color: #d2dce8;
  font-size: 11px;
  line-height: 1.45;
}

.auth-master-guard input {
  width: 100%;
  min-height: 46px;
  margin-top: 3px;
  padding: 10px 12px;
  border: 1px solid #40536a;
  border-radius: 6px;
  background: #222c39;
  color: #f5f8fc;
  text-align: center;
  font: 700 17px 'DM Sans', 'Segoe UI', sans-serif;
  letter-spacing: .02em;
}

.auth-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 2px 0;
  color: #d8e3ef;
  font-size: 11px;
}

.auth-login-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.auth-login-options input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1682d4;
}

.auth-login-card .auth-error {
  min-height: 0;
  color: #ff9b9b;
  font-size: 12px;
}

.auth-login-card .auth-error:empty {
  display: none;
}

.auth-login-card .auth-login-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: #1476c5;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.auth-login-card .auth-login-submit:hover {
  background: #1988dc;
}

.auth-login-card .auth-login-submit:disabled {
  cursor: wait;
  opacity: .68;
}

.auth-login-link {
  display: inline-block;
  margin-top: 21px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #80c4ff;
  font: 600 11px 'DM Sans', 'Segoe UI', sans-serif;
  cursor: pointer;
}

.auth-login-link:hover,
.auth-help-link:hover {
  color: #b1dcff;
  text-decoration: underline;
}

.auth-help-link {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 29px;
  color: #80c4ff;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.auth-help-link svg,
.auth-install-button svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-install-divider {
  height: 1px;
  margin: 28px 0 18px;
  background: #405063;
}

.auth-install-button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #4a83ad;
  border-radius: 6px;
  background: #173550;
  color: #80c4ff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease;
}

.auth-install-button:hover {
  border-color: #69a8d6;
  background: #1d4567;
}

@keyframes auth-panel-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  body.auth-screen .auth-gate {
    place-items: start center;
    padding: 12px;
  }

  .auth-login-view .auth-login-card {
    width: min(100%, 460px);
    padding: 16px 20px 22px;
  }

  .auth-login-heading p {
    margin-bottom: 23px;
  }

  .auth-login-options {
    gap: 8px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-login-view .auth-login-card,
  .auth-master-guard {
    animation: none;
  }

  .auth-install-button {
    transition: none;
  }
}

/* Acesso com a paleta verde do Afiar Gestão e a identidade cadastrada. */
body.auth-screen,
body.auth-screen .auth-gate { background: #18251d; }
.auth-login-view .auth-login-card { border-color: #4a6250; background: #26382d; color: #f3f7f1; }
.auth-login-heading { margin-bottom: 24px; }
.auth-login-heading h1 { color: #f5f8f3; font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }
.auth-login-heading p { margin: 5px 0 0; color: #c2d0c1; font-size: 13px; }
.auth-company-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.auth-company-brand > img,
.auth-company-fallback { display: grid; flex: none; width: 58px; height: 58px; place-items: center; border: 1px solid #71896d; border-radius: 9px; background: #f7faf5; color: #294c3a; object-fit: contain; padding: 5px; }
.auth-company-fallback { border: 0; background: #c8dd8b; color: #20382a; font-size: 19px; font-weight: 800; }
.auth-company-brand > div { min-width: 0; }
.auth-login-card .auth-form .field label,
.auth-master-guard b { color: #f0f5ef; }
.auth-login-card .auth-form .field input,
.auth-master-guard input { border-color: #516b58; background: #1d2b22; color: #f5f8f2; }
.auth-login-card .auth-form .field input:focus,
.auth-master-guard input:focus { border-color: #c8dd8b; outline: 2px solid #c8dd8b33; }
.auth-master-guard { border-color: #516b58; background: #1b2920; }
.auth-login-options { color: #d6e1d3; }
.auth-login-options input { accent-color: #c8dd8b; }
.auth-login-card .auth-login-submit { background: #37654d; color: #fff; }
.auth-login-card .auth-login-submit:hover { background: #c8dd8b; color: #20382a; }
.auth-login-link,
.auth-help-link { color: #c8dd8b; }
.auth-login-link:hover,
.auth-help-link:hover { color: #e0edbf; }
.auth-install-divider { background: #4a6250; }
.auth-install-button { border-color: #78966f; background: #203b2b; color: #d8e8c4; }
.auth-install-button:hover { border-color: #c8dd8b; background: #2e513a; }
@media (max-width: 520px) {
  .auth-login-view .auth-login-card { padding: 22px 20px 24px; }
  .auth-company-brand { align-items: flex-start; }
  .auth-company-brand > img,
  .auth-company-fallback { width: 50px; height: 50px; }
}

/* Paleta azul, verde e cinza do site Proeed. */
body.auth-screen,body.auth-screen .auth-gate{background:#f2f2f2}
.auth-login-view .auth-login-card{border-color:#cccccc;background:#ffffff;color:#333333;box-shadow:0 12px 32px rgba(0,35,110,.12)}
.auth-login-heading h1{color:#003399}
.auth-login-heading p,.auth-login-options{color:#555555}
.auth-login-card .auth-form .field label,.auth-master-guard b,.auth-master-guard span{color:#333333}
.auth-login-card .auth-form .field input,.auth-master-guard input{border-color:#aaaaaa;background:#ffffff;color:#333333}
.auth-login-card .auth-form .field input:focus,.auth-master-guard input:focus{border-color:#3366cc;outline:2px solid #3366cc33}
.auth-login-card .auth-form .field input::placeholder,.auth-master-guard input::placeholder{color:#777777}
.auth-master-guard{border-color:#cccccc;background:#f2f2f2}
.auth-master-guard small{color:#555555}
.auth-login-options input{accent-color:#3366cc}
.auth-login-card .auth-login-submit{background:#3366cc;color:#fff}
.auth-login-card .auth-login-submit:hover{background:#003399}
.auth-login-link,.auth-help-link{color:#003399}
.auth-login-link:hover,.auth-help-link:hover{color:#006600}
.auth-install-divider{background:#cccccc}
.auth-install-button{border-color:#006600;background:#006600;color:#fff}
.auth-install-button:hover{border-color:#003399;background:#003399}
.auth-screen .auth-card{border-color:#cccccc;background:#ffffff;color:#333333}
.auth-screen .auth-card h1{color:#003399}
.auth-screen .auth-card>p{color:#555555}
.auth-company-fallback{border-color:#006600;background:#8cd50b;color:#006600}
