/* accounts.css - Astrail 登入 / 註冊頁 */

.accounts-wrapper {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 16px 40px;
}

.accounts-card {
  width: min(480px, 100%);
  padding: 26px 22px 20px;
  border-radius: 24px;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(163, 138, 255, 0.18),
      transparent 60%
    ),
    rgba(7, 8, 20, 0.9);
  border: 1px solid var(--astro-border);
  box-shadow:
    0 0 26px rgba(0, 0, 0, 0.85),
    0 0 40px rgba(160, 135, 255, 0.4);
  backdrop-filter: blur(18px);
}

.accounts-header {
  text-align: center;
  margin-bottom: 14px;
}

.logo {
  margin: 0;
  font-size: 1.4rem;
  background: linear-gradient(120deg, #a38aff, #e2dcff, #ffffff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  color: transparent;
  animation: logoGlow 6s ease-in-out infinite alternate;
}

.subtitle {
  margin: 3px 0 0;
  font-size: 0.85rem;
  color: var(--astro-text-sub);
}

/* tab row */
.tab-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  background: rgba(10, 10, 28, 0.8);
  padding: 4px;
  border-radius: 999px;
}

.tab-btn {
  flex: 1;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--astro-text-sub);
  font-size: 0.9rem;
  padding: 6px 0;
  cursor: pointer;
  transition: 0.16s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, #a38aff, #e2dcff);
  color: #12091b;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(200, 180, 255, 0.9);
}

/* form */
.form {
  display: none;
  margin-top: 10px;
}

.form.active {
  display: block;
}

.field {
  margin-bottom: 10px;
}

.field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
  color: var(--astro-text-sub);
}

.field input {
  width: 100%;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(200, 180, 255, 0.45);
  background: rgba(5, 6, 18, 0.85);
  color: var(--astro-text-main);
  font-size: 0.9rem;
  outline: none;
  transition: 0.15s ease;
}

.field input:focus {
  border-color: #e2dcff;
  box-shadow: 0 0 10px rgba(210, 190, 255, 0.7);
}

/* 密碼欄位 */
.field-password .password-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.password-wrap input {
  flex: 1;
}

.toggle-password {
  border-radius: 999px;
  border: 0;
  padding: 6px 9px;
  font-size: 0.8rem;
  background: rgba(200, 180, 255, 0.14);
  color: var(--astro-text-main);
  cursor: pointer;
  white-space: nowrap;
  transition: 0.14s ease;
}

.toggle-password:hover {
  background: rgba(200, 180, 255, 0.3);
}

/* form message */
.form-message {
  min-height: 1.1em;
  font-size: 0.78rem;
  margin: 4px 2px 6px;
  color: var(--astro-error);
}

/* submit button */
.form-submit {
  width: 100%;
  margin-top: 6px;
}

/* support button */
.support-btn {
  width: 100%;
  margin-top: 12px;
  padding: 7px 0;
  border-radius: 999px;
  border: 0;
  font-size: 0.85rem;
  cursor: pointer;
  background: rgba(50, 200, 255, 0.06);
  color: rgba(210, 230, 255, 0.86);
  border: 1px dashed rgba(120, 200, 255, 0.5);
  transition: 0.15s ease;
}

.support-btn:hover {
  background: rgba(50, 200, 255, 0.18);
  box-shadow: 0 0 14px rgba(120, 200, 255, 0.7);
}

/* 動畫 */
@keyframes logoGlow {
  0% {
    background-position: 0% 50%;
    text-shadow: 0 0 0 rgba(226, 220, 255, 0.0);
  }
  100% {
    background-position: 100% 50%;
    text-shadow: 0 0 18px rgba(226, 220, 255, 0.9);
  }
}

/* RWD */
@media (max-width: 480px) {
  .accounts-card {
    padding-inline: 16px;
  }
}
