/* Account module styles */
.account-card {
  max-width: 480px;
  margin: 40px auto 80px;
  background: #ffffff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 32px;
}

.account-card h1 {
  font-size: 22px;
  margin: 6px 0 12px;
}

.account-card > p {
  color: #71818f;
  font-size: 13px;
  line-height: 1.6;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.form-banner-error {
  display: none;
  border: 1px solid #f5c2c7;
  background: #f8d7da;
  color: #842029;
  border-radius: 7px;
  padding: 12px 16px;
  margin: 15px 0;
  font-size: 13px;
  font-weight: 500;
}

.form-banner-error:not(:empty) {
  display: block;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 12px;
  font-weight: bold;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #dde5ea;
  border-radius: 7px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink, #1a202c);
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #f1bc80;
  box-shadow: 0 0 0 2px rgba(241, 188, 128, 0.4);
}

.form-field input[aria-invalid="true"] {
  border-color: #b53630;
  background: #fffafb;
}

.password-toggle {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--ink, #1a202c);
  cursor: pointer;
  font: inherit;
}

.form-error {
  color: #b53630;
  font-size: 11px;
  min-height: 16px;
  display: block;
}

.account-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 30px 0;
}

.account-verification {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.account-history {
  margin: 35px 0;
}

.account-history h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.history-row:hover {
  border-color: #f1bc80;
}

.history-row span small {
  display: block;
  color: #71818f;
  font-size: 11px;
  margin-top: 3px;
}

@media (max-width: 600px) {
  .account-card {
    margin: 20px 10px;
    padding: 20px;
  }
  .account-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}
