/* Shared Beast Music auth pages (login / register / reset) */

/* Hide app chrome while an auth screen is mounted — avoids sticky
   App.setPageOption side-effects when navigating away via BeastRouter. */
.app:has(.beast-auth) {
  padding: 0 !important;
}
.app:has(.beast-auth) .app-header,
.app:has(.beast-auth) .app-sidebar,
.app:has(.beast-auth) .app-sidebar-bg,
.app:has(.beast-auth) .app-sidebar-mobile-backdrop {
  display: none !important;
}
.app.app-sidebar-fixed:has(.beast-auth) .app-content,
.app.app-header-fixed:has(.beast-auth) .app-content,
.app:has(.beast-auth) .app-content {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.beast-auth {
  --beast-auth-ink: #2a2420;
  --beast-auth-muted: #6b6158;
  --beast-auth-panel: #fffaf5;
  --beast-auth-accent: #bb2024;
  --beast-auth-accent-dark: #9a1a1d;
  --beast-auth-line: #e5dbd0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 480px);
  background: #1a1614;
  color: var(--beast-auth-ink);
  font-family: Georgia, "Times New Roman", Times, serif;
  animation: beast-auth-fade 0.45s ease both;
}

@keyframes beast-auth-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes beast-auth-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.beast-auth__cover {
  position: relative;
  min-height: 42vh;
  background:
    linear-gradient(120deg, rgba(26, 22, 20, 0.72), rgba(26, 22, 20, 0.35)),
    url("../img/cover-photo.png") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fffaf5;
  animation: beast-auth-fade 0.7s ease both;
}

.beast-auth__brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.beast-auth__brand img {
  height: 28px;
  width: auto;
  display: block;
}

.beast-auth__brand-name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.1;
}

.beast-auth__cover-line {
  margin: 0;
  max-width: 22rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  opacity: 0.88;
}

.beast-auth__panel {
  background: var(--beast-auth-panel);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: beast-auth-rise 0.55s ease 0.08s both;
}

.beast-auth__panel-inner {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
}

.beast-auth__eyebrow {
  margin: 0 0 0.45rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--beast-auth-muted);
}

.beast-auth__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 2.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.beast-auth__subtitle {
  margin: 0 0 1.35rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--beast-auth-muted);
}

.beast-auth__field {
  margin-bottom: 0.95rem;
}

.beast-auth__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--beast-auth-muted);
}

.beast-auth__field .form-control,
.beast-auth__field input[type="email"],
.beast-auth__field input[type="text"],
.beast-auth__field input[type="password"] {
  width: 100%;
  height: 46px;
  border: 1px solid var(--beast-auth-line);
  border-radius: 8px;
  background: #fff;
  color: var(--beast-auth-ink);
  padding: 0.65rem 0.85rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  box-shadow: none;
}

.beast-auth__field .form-control:focus,
.beast-auth__field input:focus {
  outline: none;
  border-color: rgba(187, 32, 36, 0.55);
  box-shadow: 0 0 0 0.15rem rgba(187, 32, 36, 0.15);
}

.beast-auth__password {
  position: relative;
}

.beast-auth__password .form-control,
.beast-auth__password input {
  padding-right: 4.2rem;
}

.beast-auth__toggle-pass {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--beast-auth-muted);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.beast-auth__toggle-pass:hover {
  color: var(--beast-auth-accent);
}

.beast-auth__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.beast-auth__check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.25rem 0 1rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--beast-auth-muted);
}

.beast-auth__check input {
  margin-top: 0.2rem;
}

.beast-auth__check a {
  color: var(--beast-auth-accent);
  text-decoration: none;
}

.beast-auth__check a:hover {
  text-decoration: underline;
}

.beast-auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--beast-auth-accent);
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.beast-auth__submit:hover:not(:disabled) {
  background: var(--beast-auth-accent-dark);
}

.beast-auth__submit:active:not(:disabled) {
  transform: translateY(1px);
}

.beast-auth__submit:disabled,
.beast-auth__submit[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
}

.beast-auth__status {
  display: none;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  background: rgba(127, 127, 127, 0.12);
}

.beast-auth__status.is-visible {
  display: block;
}

.beast-auth__status[data-state="err"] {
  background: rgba(187, 32, 36, 0.12);
  color: #7a181a;
}

.beast-auth__status[data-state="ok"] {
  background: rgba(25, 135, 84, 0.14);
  color: #155f3a;
}

.beast-auth__status[data-state="wait"] {
  background: rgba(13, 202, 240, 0.12);
  color: #0a5f6d;
}

.beast-auth__links {
  margin-top: 1.15rem;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--beast-auth-muted);
}

.beast-auth__links a {
  color: var(--beast-auth-accent);
  text-decoration: none;
  font-weight: 600;
}

.beast-auth__links a:hover {
  text-decoration: underline;
}

.beast-auth__footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--beast-auth-line);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  color: #8a7f75;
}

@media (max-width: 900px) {
  .beast-auth {
    grid-template-columns: 1fr;
  }
  .beast-auth__cover {
    min-height: 34vh;
  }
  .beast-auth__row {
    grid-template-columns: 1fr;
  }
}
