/* Account page base */
.account-body {
  background: radial-gradient(
      900px 500px at 20% 10%,
      rgba(255, 110, 140, 0.18),
      transparent 55%
    ),
    radial-gradient(
      700px 450px at 90% 15%,
      rgba(255, 180, 90, 0.16),
      transparent 55%
    ),
    rgba(255, 192, 203, 0.10);
  color: #111;
}

.account-main {
  max-width: 900px;
  margin: 2.25rem auto 3.5rem;
  padding: 0 1.5rem;
}

/* Cards */
.account-card {
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 1rem;
  padding: 1.9rem 1.65rem 2.1rem;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(17, 24, 39, 0.06);
  margin-bottom: 1.5rem;
  text-align: left;
}

.account-card--hidden {
  display: none;
}

.account-title {
  font-size: 1.65rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.account-subtitle {
  margin-top: 0.5rem;
  color: rgba(17, 24, 39, 0.70);
  font-size: 0.95rem;
}

/* Forms */
.auth-form label,
.account-card label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
  color: rgba(17, 24, 39, 0.85);
  font-weight: 600;
}

.auth-form input,
.account-card input {
  width: 100%;
  padding: 0.7rem 0.75rem;
  margin-top: 0.4rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: rgba(249, 250, 251, 1);
  font-size: 0.96rem;
  outline: none;
  transition: box-shadow 0.18s ease, border-color 0.18s ease,
    background 0.18s ease, transform 0.08s ease;
}

.auth-form input::placeholder,
.account-card input::placeholder {
  color: rgba(17, 24, 39, 0.35);
}

.auth-form input:focus,
.account-card input:focus {
  border-color: rgba(236, 72, 153, 0.55); /* pink-ish focus */
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
  background: #fff;
}

.auth-form input:active,
.account-card input:active {
  transform: scale(0.998);
}

.account-btn {
  margin-top: 1rem;
  width: 100%;
}

  .auth-link{
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: -0.25rem;
  margin-bottom: 0.25rem;
  padding: 0.25rem 0;
  background: none;
  border: none;
  color: #161313;
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-link:hover{ opacity: .85; }

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 0.55rem;
  margin: 1.1rem 0 1.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.05);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.auth-tab {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.70);
  cursor: pointer;
  transition: transform 0.08s ease, background 0.18s ease,
    color 0.18s ease, box-shadow 0.18s ease;
}

.auth-tab:hover {
  background: rgba(17, 24, 39, 0.05);
  color: rgba(17, 24, 39, 0.85);
}

.auth-tab:active {
  transform: scale(0.985);
}

.auth-tab--active {
  background: #111827; /* near-black */
  color: #fff;
  border-color: #111827;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.18);
}

.auth-form--hidden {
  display: none;
}

/* Buttons */
.btn {
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.18s ease,
    box-shadow 0.18s ease, background 0.18s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: linear-gradient(135deg, #111827, #2b2f3a);
  color: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-ghost {
  background: rgba(225, 29, 72, 0.06);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #e11d48;
}

.btn-ghost:hover {
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.10);
}

.account-btn--danger {
  margin-top: 1.5rem;
}

/* Messages */
.account-error {
  margin-top: 1rem;
  color: #b91c1c;
  font-size: 0.92rem;
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.18);
  padding: 0.65rem 0.8rem;
  border-radius: 0.75rem;
}

.account-success {
  margin-top: 0.75rem;
  color: #15803d;
  font-size: 0.92rem;
  background: rgba(21, 128, 61, 0.08);
  border: 1px solid rgba(21, 128, 61, 0.18);
  padding: 0.65rem 0.8rem;
  border-radius: 0.75rem;
}

/* Small screens */
@media (max-width: 600px) {
  .account-main {
    padding: 0 1rem;
    margin: 1.75rem auto 3rem;
  }

  .account-card {
    padding: 1.55rem 1.2rem 1.75rem;
    border-radius: 0.95rem;
  }

  .account-title {
    font-size: 1.45rem;
  }

}
