/* Keeps the authentication screen and the application shell mutually exclusive. */
[hidden] {
  display: none !important;
}

body.auth-screen {
  background: #edf4f8;
  overflow-x: hidden;
}

.form-feedback {
  color: #176f48;
  font-size: .78rem;
  line-height: 1.45;
  margin: .45rem 0 0;
}

.login-registration-link {
  display: block;
  margin: .9rem auto 0;
}

.password-control {
  position: relative;
}

.password-control input {
  width: 100%;
  padding-right: 5.7rem !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: .35rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  padding: .36rem .48rem;
  background: #edf4f8;
  color: #176f48;
  font-size: .69rem;
  font-weight: 800;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: #dceef0;
  outline: 2px solid #0da5b5;
  outline-offset: 1px;
}

#registration-form .registration-password-field {
  align-self: start;
}

#registration-form .password-guidance {
  grid-column: span 2;
  margin: -.2rem 0 0;
  padding: .72rem .8rem;
  border: 1px solid #d6edef;
  border-radius: 8px;
  background: #eef7f8;
  color: #496a7f;
  font-size: .72rem;
  line-height: 1.45;
}

#registration-form .password-guidance strong {
  color: #176f48;
  font-size: .74rem;
}

#registration-form .password-guidance p {
  margin: .28rem 0 0;
}

.homologation-intro,
.access-pending .panel {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.1rem;
  border: 1px solid #cce8eb;
  border-radius: 12px;
  background: #eef8f8;
  color: #426479;
}

.homologation-intro > span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #137d89;
  color: #fff;
  font-weight: 900;
}

.homologation-intro strong,
.access-pending h2 {
  display: block;
  color: #176b73;
  font-size: .88rem;
}

.homologation-intro p,
.access-pending p {
  margin: .25rem 0 0;
  font-size: .75rem;
  line-height: 1.5;
}

.homologation-users {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.homologation-user {
  overflow: hidden;
  border: 1px solid #dce9ee;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(18, 46, 72, .035);
}

.homologation-user-head {
  display: flex;
  align-items: center;
  gap: .62rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid #e6eff3;
}

.homologation-user-head .user-avatar {
  background: #e5f5f7;
  color: #087b8d;
}

.homologation-user-head h3 {
  font-size: .8rem;
}

.homologation-user-head p {
  margin-top: .15rem;
  color: #708a9b;
  font-size: .66rem;
}

.homologation-user-head .role-badge {
  max-width: 128px;
  text-align: center;
}

.homologation-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.homologation-option {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  min-height: 68px;
  padding: .72rem .78rem;
  border-right: 1px solid #eef3f5;
  border-bottom: 1px solid #eef3f5;
  cursor: pointer;
}

.homologation-option:nth-child(even) { border-right: 0; }
.homologation-option:nth-last-child(-n + 2) { border-bottom: 0; }
.homologation-option:hover { background: #f6fbfb; }
.homologation-option input { margin-top: .16rem; accent-color: #087f8e; }
.homologation-option strong,
.homologation-option small { display: block; }
.homologation-option strong { color: #36566b; font-size: .68rem; }
.homologation-option small { margin-top: .15rem; color: #7891a0; font-size: .59rem; line-height: 1.35; }
.homologation-option input:disabled { cursor: wait; }

.access-pending {
  max-width: 700px;
  margin: 4rem auto;
}

.access-pending .panel {
  display: block;
  padding: 1.7rem;
}

.access-pending .eyebrow { color: #087e8c; }
.access-pending h2 { margin-top: .35rem; font-size: 1.3rem; }
.access-pending-note { color: #176f48; font-weight: 750; }

@media (max-width: 560px) {
  #registration-form .password-guidance {
    grid-column: auto;
  }

  .homologation-users { grid-template-columns: 1fr; }
  .homologation-options { grid-template-columns: 1fr; }
  .homologation-option { border-right: 0; }
  .homologation-option:nth-last-child(-n + 2) { border-bottom: 1px solid #eef3f5; }
  .homologation-option:last-child { border-bottom: 0; }
}
