:root {
  --auth-bg: #09121b;
  --auth-panel: rgba(14, 23, 33, 0.84);
  --auth-border: rgba(255, 255, 255, 0.16);
  --auth-text: #eaf2fb;
  --auth-muted: #b8c6d4;
  --auth-accent: #ffb347;
  --auth-accent-2: #8fc6ff;
}

* {
  box-sizing: border-box;
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--auth-text);
  background: var(--auth-bg);
  display: grid;
  grid-template-rows: auto 1fr;
}

.auth-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(7, 14, 21, 0.78);
  border-bottom: 1px solid var(--auth-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.auth-brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px;
}

.auth-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-links a {
  color: var(--auth-accent-2);
  text-decoration: none;
  font-size: 13px;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-main {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(6, 16, 25, 0.78), rgba(7, 12, 19, 0.56)),
    url('../../landing/drums1.png');
  background-size: cover;
  background-position: center;
  filter: saturate(1.04) contrast(1.04);
}

.auth-bg.alt {
  animation: authCrossfade 18s infinite;
  background-image:
    linear-gradient(120deg, rgba(6, 16, 25, 0.64), rgba(7, 12, 19, 0.52)),
    url('../../landing/drums2.png');
}

@keyframes authCrossfade {
  0%, 40% { opacity: 0; }
  50%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

.auth-wrap {
  position: relative;
  width: min(980px, 96vw);
  display: grid;
  gap: 16px;
  grid-template-columns: 1.15fr 0.9fr;
}

.auth-hero,
.auth-card {
  background: var(--auth-panel);
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.auth-hero {
  padding: 26px;
}

.auth-hero-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(6, 16, 25, 0.72);
}

.auth-hero-brand img {
  width: 136px;
  height: auto;
  object-fit: contain;
}

.auth-hero-meaning {
  display: grid;
  gap: 0;
}

.auth-hero-full {
  font-size: 12px;
  line-height: 1.35;
  color: #dbe6f2;
}

.auth-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
}

.auth-hero p {
  margin: 0;
  color: var(--auth-muted);
  line-height: 1.6;
  font-size: 15px;
}

.auth-card {
  padding: 22px;
}

.auth-card h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

.auth-card p {
  margin: 0 0 12px;
  color: var(--auth-muted);
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  color: #d3deea;
  font-size: 13px;
  font-weight: 600;
}

.auth-form input {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 16, 24, 0.9);
  color: #eaf2fb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  width: 100%;
}

.auth-checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d3deea;
  font-size: 13px;
  font-weight: 500;
}

.auth-checkline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--auth-accent);
}

.auth-form button {
  border: none;
  border-radius: 10px;
  background: var(--auth-accent);
  color: #23160a;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 10px 14px;
  cursor: pointer;
}

.auth-form button:hover {
  filter: brightness(1.05);
}

.auth-form .secondary-btn {
  background: #2b3c53;
  color: #e8eef5;
}

.auth-form .secondary-btn:hover {
  background: #324863;
}

.auth-form .auth-alt-divider {
  margin: 2px 0 0;
  color: #9bb1c7;
  font-size: 12px;
  text-align: center;
}

.auth-msg {
  min-height: 18px;
  font-size: 13px;
}

.auth-msg.error {
  color: #ffd4d4;
}

.auth-msg.ok {
  color: #c7efc0;
}

.auth-footer {
  margin-top: 8px;
  color: var(--auth-muted);
  font-size: 12px;
}

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

.auth-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .auth-wrap {
    grid-template-columns: 1fr;
  }

  .auth-hero-brand img {
    width: 110px;
  }
}
