/* Login — liquid glass, neon cyan, logo circle aligned to artwork ring */
:root {
  --brand-cyan: #2ee8ff;
  --brand-cyan-mid: #06b6d4;
  --brand-cyan-deep: #0891b2;
  --brand-glass-bg: rgba(12, 22, 38, 0.45);
  --brand-glass-border: rgba(255, 255, 255, 0.14);
  --brand-glass-highlight: rgba(255, 255, 255, 0.08);
  --brand-text: #e8fbff;
  --brand-muted: #94a3b8;
  --brand-input-bg: rgba(2, 8, 18, 0.45);
}

.auth-brand-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem 4rem;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(6, 182, 212, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse 70% 45% at 50% 105%, rgba(8, 145, 178, 0.08) 0%, transparent 48%),
    linear-gradient(165deg, #020617 0%, #030508 45%, #050a12 100%);
  font-family: "Nunito", system-ui, sans-serif;
}

.auth-brand-wrap {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -2rem;
}

.auth-brand-logo-shell {
  width: min(176px, 46vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 1.15rem;
  background: #000;
}

.auth-brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Liquid glass panel */
.auth-brand-card {
  width: 100%;
  padding: 1.85rem 1.6rem 1.35rem;
  border-radius: 20px;
  position: relative;
  isolation: isolate;
  background: var(--brand-glass-bg);
  border: 1px solid var(--brand-glass-border);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(46, 232, 255, 0.08),
    inset 0 1px 0 var(--brand-glass-highlight),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

@supports not (backdrop-filter: blur(1px)) {
  .auth-brand-card {
    background: rgba(12, 22, 38, 0.92);
  }
}

.auth-brand-title {
  margin: 0 0 1.35rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-text);
  text-align: center;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.auth-brand-card .alert-danger {
  background: rgba(127, 29, 29, 0.4);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  border-radius: 12px;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-brand-card .form-group {
  margin-bottom: 1rem;
}

.auth-brand-field {
  position: relative;
}

.auth-brand-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--brand-text);
  font-family: inherit;
  background: var(--brand-input-bg);
  border: 1px solid rgba(46, 232, 255, 0.18);
  border-radius: 12px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.auth-brand-input::placeholder {
  color: var(--brand-muted);
}

.auth-brand-input:hover {
  border-color: rgba(46, 232, 255, 0.32);
  background: rgba(2, 12, 24, 0.55);
}

.auth-brand-input:focus {
  outline: none;
  border-color: rgba(46, 232, 255, 0.65);
  background: rgba(2, 14, 28, 0.65);
  box-shadow:
    0 0 0 3px rgba(46, 232, 255, 0.12),
    inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Custom checkbox — works everywhere (no reliance on accent-color only) */
.auth-brand-check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  min-height: 1.5rem;
}

.auth-brand-checkbox-input {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.auth-brand-checkbox-box {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 8px;
  border: 2px solid rgba(46, 232, 255, 0.4);
  background: rgba(0, 8, 20, 0.5);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  pointer-events: none;
  position: relative;
}

.auth-brand-checkbox-input:hover + .auth-brand-checkbox-box {
  border-color: rgba(46, 232, 255, 0.6);
  background: rgba(6, 30, 45, 0.55);
}

.auth-brand-checkbox-input:focus-visible + .auth-brand-checkbox-box {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(46, 232, 255, 0.2),
    inset 0 1px 3px rgba(0, 0, 0, 0.35);
  border-color: var(--brand-cyan);
}

.auth-brand-checkbox-input:checked + .auth-brand-checkbox-box {
  border-color: transparent;
  background: linear-gradient(145deg, var(--brand-cyan) 0%, var(--brand-cyan-mid) 55%, var(--brand-cyan-deep) 100%);
  box-shadow:
    0 2px 12px rgba(6, 182, 212, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.auth-brand-checkbox-box::after {
  content: "";
  width: 0.3rem;
  height: 0.55rem;
  margin-top: -0.1rem;
  border: solid #020617;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.auth-brand-checkbox-input:checked + .auth-brand-checkbox-box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.auth-brand-checkbox-label {
  font-size: 0.9rem;
  color: var(--brand-muted);
  line-height: 1.3;
  transition: color 0.2s ease;
}

.auth-brand-check:hover .auth-brand-checkbox-label {
  color: #cbd5e1;
}

.auth-brand-btn {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.78rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.03em;
  color: #020617;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(145deg, #5eead4 0%, var(--brand-cyan-mid) 35%, var(--brand-cyan-deep) 100%);
  box-shadow:
    0 4px 20px rgba(6, 182, 212, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.auth-brand-btn:hover {
  filter: brightness(1.06);
  box-shadow:
    0 6px 28px rgba(6, 182, 212, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.auth-brand-btn:active {
  transform: scale(0.992);
}

.auth-brand-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(46, 232, 255, 0.35),
    0 4px 20px rgba(6, 182, 212, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.auth-brand-footer {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.auth-brand-footer a {
  font-size: 0.8rem;
  color: var(--brand-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-brand-footer a:hover {
  color: var(--brand-cyan);
  text-decoration: underline;
}
