.cls-wrap {
  max-width: 420px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  font-family: inherit;
}

.cls-tabs {
  display: flex;
  gap: 1.25rem;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 1rem;
}

.cls-tab {
  background: none;
  border: 0;
  padding: 0.5rem 0;
  font-size: 1rem;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.cls-tab.is-active {
  color: #111;
  font-weight: 600;
  border-bottom-color: #111;
}

.cls-role-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  background: #1f4d3a;
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
}

.cls-messages {
  min-height: 0;
  margin-bottom: 0.75rem;
}

.cls-messages .cls-msg {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.cls-messages .cls-msg.is-error {
  background: #fde8e8;
  color: #8a1f1f;
}

.cls-messages .cls-msg.is-success {
  background: #e7f6ee;
  color: #145c36;
}

.cls-form {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}

.cls-form.is-active {
  display: flex;
}

.cls-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.cls-form input {
  padding: 0.7rem 0.85rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
}

.cls-form input:focus {
  outline: 2px solid #1f4d3a;
  border-color: #1f4d3a;
}

.cls-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cls-btn {
  display: inline-block;
  width: 100%;
  padding: 0.85rem 1rem;
  background: #1f4d3a;
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.cls-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.cls-forgot {
  margin: 0;
  font-size: 0.85rem;
}

.cls-forgot a {
  color: #1f4d3a;
}

@media (max-width: 480px) {
  .cls-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile header login links */
.top-mb-menu {
  display: block !important;
  padding: 0 25px 20px !important;
}

.top-mb-menu .account.logged-out {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  padding-right: 0 !important;
}

.top-mb-menu .account.logged-out .btn-login {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 12px 0;
  line-height: 1.4;
  white-space: normal;
  text-align: left;
}
