.region-nav-additional .block-metroindy-auth,
.region-nav-additional .mir-auth {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
}

.mir-auth__open,
.mir-auth__who {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.15rem;
  color: #1e3a5f;
  font-family: "Maven Pro", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
}

.mir-auth__open:hover,
.mir-auth__who:hover {
  color: #0f2744;
  text-decoration: underline;
}

.mir-auth__who-name {
  display: inline-block;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

.mir-auth__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 1080;
  min-width: 8rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid #e8eef5;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.12);
}

.mir-auth__logout {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.6rem;
  text-align: left;
  color: #1e3a5f;
  font-family: "Maven Pro", sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
}

.mir-auth__logout:hover {
  background: #f4f7fb;
}

.mir-auth__dialog {
  width: min(24rem, calc(100vw - 2rem));
  padding: 1.5rem 1.35rem 1.35rem;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 18px 50px rgba(15, 39, 68, 0.22);
}

.mir-auth__dialog::backdrop {
  background: rgba(15, 39, 68, 0.45);
}

.mir-auth__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.mir-auth__title {
  margin: 0 1.5rem 0.35rem 0;
  font-family: "Maven Pro", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1e3a5f;
}

.mir-auth__lead {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.92rem;
}

.mir-auth__google {
  display: flex;
  justify-content: center;
  min-height: 2.5rem;
}

.mir-auth__or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: #94a3b8;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mir-auth__or::before,
.mir-auth__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e8eef5;
}

.mir-auth__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1e3a5f;
}

.mir-auth__input {
  display: block;
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.3rem;
  font-size: 1rem;
}

.mir-auth__input:focus {
  outline: 2px solid #1e3a5f;
  outline-offset: 1px;
}

.mir-auth__send {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 0.3rem;
  background: #1e3a5f;
  color: #fff;
  padding: 0.6rem 0.8rem;
  font-family: "Maven Pro", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.mir-auth__send:hover {
  background: #0f2744;
}

.mir-auth__send:disabled {
  opacity: 0.65;
  cursor: wait;
}

.mir-auth__msg {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
}

.mir-auth__msg--ok {
  color: #166534;
}

.mir-auth__msg--err {
  color: #b42318;
}

@media (max-width: 991.98px) {
  .region-nav-additional .block-metroindy-auth,
  .region-nav-additional .mir-auth {
    width: 100%;
    margin: 0.5rem 0 0;
  }

  .mir-auth__open,
  .mir-auth__who {
    width: 100%;
    padding: 0.9rem 0.15rem;
    border-bottom: 1px solid #e8eef5;
    text-align: left;
    font-size: 1.15rem;
  }

  .mir-auth__menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid #e8eef5;
    padding: 0 0 0.5rem;
  }

  .mir-auth__logout {
    font-size: 1.05rem;
    padding: 0.5rem 0.15rem;
  }
}
