/* Hanko — Ink & Authority */

/* ── Grain overlay ── */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── Staggered fade-in ── */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-in-1 { animation-delay: 0.08s; }
.fade-in-2 { animation-delay: 0.16s; }
.fade-in-3 { animation-delay: 0.24s; }
.fade-in-4 { animation-delay: 0.32s; }
.fade-in-5 { animation-delay: 0.4s; }
.fade-in-6 { animation-delay: 0.48s; }

/* ── Seal stamp pulse ── */
@keyframes stamp {
  0% {
    transform: scale(0.6) rotate(-8deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.05) rotate(1deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.seal-stamp {
  animation: stamp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

/* ── Auth card ── */
.auth-card {
  background: linear-gradient(
    165deg,
    rgba(30, 30, 50, 0.95) 0%,
    rgba(26, 26, 46, 0.98) 100%
  );
  border: 1px solid rgba(233, 69, 96, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 20px 60px -12px rgba(0, 0, 0, 0.5),
    0 0 120px -40px rgba(233, 69, 96, 0.08);
  backdrop-filter: blur(20px);
}

/* ── Hanko input fields ── */
.hanko-input {
  background: rgba(15, 15, 26, 0.6);
  border: 1px solid rgba(107, 107, 128, 0.2);
  color: #e8e6e1;
  font-family: "Outfit", sans-serif;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.hanko-input::placeholder {
  color: rgba(107, 107, 128, 0.6);
}

.hanko-input:focus {
  border-color: rgba(233, 69, 96, 0.4);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.08);
}

/* ── Primary button ── */
.btn-seal {
  background: linear-gradient(135deg, #e94560 0%, #c81d4e 100%);
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 20px -4px rgba(233, 69, 96, 0.35);
}

.btn-seal:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px -4px rgba(233, 69, 96, 0.45);
  filter: brightness(1.08);
}

.btn-seal:active {
  transform: translateY(0px);
  box-shadow: 0 2px 12px -4px rgba(233, 69, 96, 0.3);
}

/* ── Torii watermark ── */
.torii-watermark {
  position: fixed;
  bottom: -60px;
  right: -40px;
  width: 380px;
  height: 380px;
  opacity: 0.018;
  pointer-events: none;
  z-index: 0;
}

/* ── Form label ── */
.hanko-label {
  font-family: "Outfit", sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6b80;
  margin-bottom: 0.5rem;
  display: block;
}

/* ── Checkbox ── */
.hanko-checkbox {
  accent-color: #e94560;
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

/* ── Links ── */
.hanko-link {
  color: #6b6b80;
  font-family: "Outfit", sans-serif;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.2s;
}

.hanko-link:hover {
  color: #c9a96e;
}

/* ── Error messages ── */
.hanko-errors {
  background: rgba(233, 69, 96, 0.06);
  border: 1px solid rgba(233, 69, 96, 0.15);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
}

.hanko-errors h2 {
  font-family: "Outfit", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e94560;
  margin-bottom: 0.375rem;
}

.hanko-errors ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hanko-errors li {
  font-family: "Outfit", sans-serif;
  font-size: 0.8125rem;
  color: rgba(233, 69, 96, 0.8);
  padding: 0.125rem 0;
}

/* ── Flash messages ── */
.flash-notice {
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.15);
  color: #c9a96e;
}

.flash-alert {
  background: rgba(233, 69, 96, 0.08);
  border: 1px solid rgba(233, 69, 96, 0.15);
  color: #e94560;
}

/* ── Divider ── */
.hanko-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(107, 107, 128, 0.15) 50%,
    transparent 100%
  );
}

/* ── Dashboard stats card ── */
.stat-card {
  background: rgba(30, 30, 50, 0.6);
  border: 1px solid rgba(107, 107, 128, 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.25s;
}

.stat-card:hover {
  border-color: rgba(233, 69, 96, 0.15);
}

/* ── Danger zone ── */
.btn-danger {
  background: transparent;
  border: 1px solid rgba(233, 69, 96, 0.2);
  color: rgba(233, 69, 96, 0.7);
  font-family: "Outfit", sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: rgba(233, 69, 96, 0.08);
  border-color: rgba(233, 69, 96, 0.35);
  color: #e94560;
}

/* ── Cookie consent banner ── */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner {
  animation: slide-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.cookie-banner-hide {
  animation: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.25s, transform 0.25s;
}
