body.user-management-page {
  background: #ededed;
  color: #111111;
}

.profile-layout {
  min-height: 540px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  border: 1px solid #dbdbdb;
  background: #f8f8f8;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.profile-left {
  padding: 1.6rem;
}

.profile-back-link {
  color: #4b4b4b;
  text-decoration: none;
  font-size: 0.9rem;
}

.profile-back-link:hover {
  text-decoration: underline;
}

.profile-left h1 {
  margin: 0.8rem 0 0.35rem;
  color: #141414;
  font-size: clamp(1.45rem, 2vw, 1.95rem);
}

.profile-subtitle {
  margin: 0 0 1rem;
  color: #5c5c5c;
  max-width: 56ch;
  font-size: 0.94rem;
}

.profile-form {
  display: grid;
  gap: 0.75rem;
}

.profile-form label {
  display: grid;
  gap: 0.3rem;
}

.profile-form label span {
  color: #444444;
  font-size: 0.85rem;
  font-weight: 600;
}

.profile-form input,
.profile-form select {
  width: 100%;
  border: 1px solid #d5d5d5;
  background: #ffffff;
  color: #1d1d1d;
  border-radius: 8px;
  padding: 0.62rem 0.72rem;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-form input:focus,
.profile-form select:focus {
  border-color: #8ea6cf;
  box-shadow: 0 0 0 3px rgba(89, 128, 190, 0.18);
}

.profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.profile-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.primary-btn,
.ghost-btn {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.64rem 0.94rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 118px;
}

.primary-btn {
  color: #ffffff;
  border-color: #131a27;
  background: #121a2a;
}

.ghost-btn {
  color: #1a1a1a;
  border-color: #d8d8d8;
  background: #ffffff;
}

.profile-message {
  margin: 0.9rem 0 0;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.58rem 0.68rem;
  font-size: 0.84rem;
}

.profile-message[data-kind="ok"] {
  border-color: #b9e4cd;
  background: #eefaf3;
  color: #186840;
}

.profile-message[data-kind="warn"] {
  border-color: #f2d9a5;
  background: #fff7e8;
  color: #7f5c10;
}

.profile-right {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.1)), url("/auth/right-side-bg.png")
    center/cover no-repeat;
}

.user-header-title {
  height: 42px;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  background: #101010;
  color: #f0f0f0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0.85rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.user-management-page .auth-trigger-btn {
  min-width: 124px;
}

.user-management-page .profile-actions .primary-btn,
.user-management-page .profile-actions .ghost-btn {
  width: auto;
}

@media (max-width: 920px) {
  .user-header-title {
    display: none;
  }
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .profile-right {
    min-height: 180px;
  }
}
