.account-body {
  overflow-y: auto;
}

html.lobby-html {
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

.account-page {
  padding-top: 2rem;
}

.account-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  padding-top: 20px;
}

.account-panel {
  width: 100%;
  max-width: 980px;
  min-height: 420px;
  box-sizing: border-box;
}

.account-layout {
  display: flex;
  gap: 1.5rem;
  margin-top: 3.5rem;
  width: 100%;
  min-height: 420px;
  flex-wrap: wrap;
}

.account-banner-title {
  background-size: 100% 100%;
}

.account-menu {
  width: 240px;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid #d5c49b;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 4px;
}

.account-tab {
  background: linear-gradient(90deg, #2f2f2f, #222);
  color: #e9e1c1;
  border: 1px solid #8b6f3e;
  padding: 0.65rem 0.75rem;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.1s ease;
}

.account-tab.active {
  background: linear-gradient(90deg, #b68c40, #9b7a2f);
  color: #1a1a1a;
  transform: translateX(4px);
}

.account-tab:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.account-detail {
  flex: 1;
  min-width: 260px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #d5c49b;
  border-radius: 4px;
  padding: 1.5rem;
  color: #fff;
}

.reset-password-card {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.reset-password-form {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reset-password-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.reset-password-form label {
  font-weight: 600;
  color: #e8d58e;
}

.reset-password-form input {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid #8b6f3e;
  color: #fff;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  font-size: 1rem;
}

.reset-password-form input:focus {
  outline: none;
  border-color: #cfa95f;
  box-shadow: 0 0 0 2px rgba(207, 169, 95, 0.25);
}

.reset-password-form .reset-button {
  margin-top: 0.5rem;
}

.account-section h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #e8d58e;
}

.account-field {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.field-label {
  color: #c7b78a;
  margin-right: 1rem;
}

.reset-description {
  margin: 1rem 0 1.5rem;
  line-height: 1.4;
  color: #e5e5e5;
}

.reset-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reset-button {
  align-self: flex-start;
  background-color: #c33;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.reset-button:hover {
  background-color: #e55;
}

.reset-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.reset-feedback {
  min-height: 1.2em;
  color: #c7e3a1;
  margin: 0;
}

.reset-feedback.error {
  color: #f4b6b6;
}

@media (max-width: 900px) {
  .account-layout {
    flex-direction: column;
  }

  .account-menu {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .account-tab {
    flex: 1 1 220px;
  }
}