/* ============================================
   HELLEN EXCLUSIVE — Auth Pages
   Monochrome: #080a0f · #d0d0d0 · #909090
   ============================================ */

:root {
  --bg:           #080a0f;
  --bg-2:         #0d1117;
  --surface:      rgba(255,255,255,0.028);
  --surface-2:    rgba(255,255,255,0.048);
  --border:       rgba(200,200,200,0.07);
  --border-hi:    rgba(200,200,200,0.15);
  --border-input: rgba(200,200,200,0.10);
  --border-focus: rgba(200,200,200,0.30);

  --accent:  #d0d0d0;
  --accent2: #909090;

  --p1: #707070;
  --p3: #d0d0d0;
  --p4: #e8e8e8;
  --mg: #909090;

  --txt:   #d8d8d8;
  --txt-2: rgba(210,210,210,0.70);
  --txt-3: rgba(200,200,200,0.45);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --ease:   cubic-bezier(0.4,0,0.2,1);
  --spring: cubic-bezier(0.34,1.56,0.64,1);

  --ff: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════
   BACKGROUND LAYERS
   (tanpa kanji, tanpa corner)
══════════════════════════════════════ */

#bgCanvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

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

.grid {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    linear-gradient(rgba(200,200,200,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,200,200,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}

.orbs {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0;
  animation: orbFloat linear infinite;
}
.orb:nth-child(1) {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(200,200,200,0.09), transparent 70%);
  left: -10%; top: 10%;
  animation-duration: 20s; animation-delay: 0s;
}
.orb:nth-child(2) {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(160,160,160,0.06), transparent 70%);
  right: -5%; top: 45%;
  animation-duration: 24s; animation-delay: -7s;
}
.orb:nth-child(3) {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(200,200,200,0.05), transparent 70%);
  left: 15%; bottom: -15%;
  animation-duration: 28s; animation-delay: -14s;
}
@keyframes orbFloat {
  0%   { opacity: 0; transform: translateY(30px) scale(0.9); }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-30px) scale(1.1); }
}

/* ── Page Content Wrapper ── */
.page-content { position: relative; z-index: 10; }

/* ── Page Layout ── */
.auth-page {
  width: 100%; max-width: 420px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.auth-container {
  width: 100%;
  opacity: 0; transform: translateY(18px);
  animation: fadeUp 0.55s var(--ease) 0.1s forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ── Back Button ── */
.auth-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 28px; padding: 7px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 99px; color: var(--txt-2);
  text-decoration: none; font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.auth-back:hover {
  background: var(--surface-2);
  border-color: var(--border-hi);
  color: var(--txt);
}
.auth-back svg { flex-shrink: 0; }

/* ── Auth Card ── */
.auth-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
}

/* subtle inner grid */
.auth-card::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,200,200,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,200,200,0.016) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none; border-radius: inherit;
}

.auth-card-glow {
  position: absolute; top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 220px; height: 180px;
  background: radial-gradient(circle, rgba(200,200,200,0.06), transparent 70%);
  filter: blur(40px); pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 0.85; } }

/* ── Auth Header ── */
.auth-header {
  text-align: center; margin-bottom: 28px;
  position: relative; z-index: 1;
}
.auth-icon { display: none; }

.auth-eyebrow {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--txt-3); margin-bottom: 10px;
}

.auth-header h1 {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.15;
  background: linear-gradient(135deg, #e8e8e8 0%, #909090 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 6px;
}

.auth-header p {
  font-size: 0.78rem; color: var(--txt-2); font-weight: 300;
}

/* ── Donation Section ── */
.donation-section {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: rgba(200,200,200,0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 24px;
  position: relative; z-index: 1;
}

.donation-logo {
  flex-shrink: 0; width: 40px; height: 40px;
  object-fit: cover; border-radius: var(--r-sm);
}

.donation-info { flex: 1; min-width: 0; }
.donation-info p {
  font-size: 0.74rem; color: var(--txt-2);
  line-height: 1.45; margin-bottom: 8px; font-weight: 300;
}

.btn-donate {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #d0d0d0 0%, #909090 100%);
  color: #080a0f;
  font-family: var(--ff); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border-radius: 99px;
  transition: transform 0.2s var(--spring), box-shadow 0.2s;
  box-shadow: 0 3px 14px rgba(200,200,200,0.12);
}
.btn-donate:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(200,200,200,0.20);
}
.btn-donate svg { flex-shrink: 0; }

/* ── Divider ── */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px; position: relative; z-index: 1;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span {
  font-size: 0.65rem; color: var(--txt-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap;
}

/* ── Messages ── */
.msg-success {
  display: flex; gap: 12px; padding: 14px 16px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.18);
  border-radius: var(--r-md); margin-bottom: 20px;
  position: relative; z-index: 1;
}
.msg-success .msg-icon { flex-shrink: 0; color: #4ade80; margin-top: 1px; }
.msg-success .msg-content p { font-size: 0.78rem; color: #bbf7d0; line-height: 1.5; }
.msg-success .msg-content p strong { color: #86efac; }

.msg-error {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.18);
  border-radius: var(--r-md); margin-bottom: 20px;
  position: relative; z-index: 1;
}
.msg-error .msg-icon { flex-shrink: 0; color: #f87171; }
.msg-error p { font-size: 0.78rem; color: #fca5a5; line-height: 1.4; }

/* ── Form ── */
.auth-form { position: relative; z-index: 1; }
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block; font-size: 0.72rem; font-weight: 600;
  color: var(--txt-3); margin-bottom: 7px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.form-group label svg { display: none; }

.form-input {
  width: 100%; padding: 12px 14px;
  background: rgba(8,10,15,0.65);
  border: 1px solid var(--border-input);
  border-radius: var(--r-md);
  color: var(--txt); font-family: var(--ff);
  font-size: 0.86rem; font-weight: 400;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-input::placeholder { color: var(--txt-3); }
.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(200,200,200,0.05);
  background: rgba(8,10,15,0.88);
}

/* Password */
.password-wrapper { position: relative; }
.password-wrapper .form-input { padding-right: 46px; }
.toggle-password {
  position: absolute; right: 13px; top: 50%;
  transform: translateY(-50%);
  cursor: pointer; color: var(--txt-3);
  display: flex; align-items: center; padding: 4px;
  transition: color 0.2s;
}
.toggle-password:hover { color: var(--accent); }

/* File Input */
.file-input-wrapper { position: relative; }
.file-input-label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px;
  background: rgba(8,10,15,0.4);
  border: 1.5px dashed var(--border-input);
  border-radius: var(--r-md); color: var(--txt-3);
  font-size: 0.78rem; font-weight: 500; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.file-input-label:hover {
  border-color: var(--border-focus);
  background: rgba(200,200,200,0.025);
  color: var(--txt-2);
}
.file-input-label svg { color: var(--accent2); flex-shrink: 0; }
.file-input-label .file-name { color: var(--accent); font-weight: 600; }
.file-input-hidden { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }

/* ── Submit Button ── */
.btn-submit {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; padding: 14px 24px; margin-top: 22px;
  background: linear-gradient(135deg, #d0d0d0 0%, #888888 100%);
  color: #080a0f;
  font-family: var(--ff); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: none; border-radius: 99px;
  cursor: pointer; overflow: hidden;
  transition: transform 0.2s var(--spring), box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(200,200,200,0.12);
  animation: btnPulse 2.8s ease-in-out infinite;
}
@keyframes btnPulse {
  0%,100% { box-shadow: 0 4px 24px rgba(200,200,200,0.12); }
  50%      { box-shadow: 0 4px 36px rgba(200,200,200,0.22); }
}
.btn-submit:hover  { transform: scale(1.02); }
.btn-submit:active { transform: scale(0.97); }
.btn-submit svg    { display: none; }
.btn-submit span   { position: relative; z-index: 1; }

.btn-submit .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ── Auth Footer ── */
.auth-footer {
  text-align: center; margin-top: 20px;
  position: relative; z-index: 1;
}
.auth-footer p { font-size: 0.76rem; color: var(--txt-3); }
.auth-footer a {
  color: var(--accent); text-decoration: none;
  font-weight: 600; transition: color 0.2s;
}
.auth-footer a:hover { color: #ffffff; }

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(200,200,200,0.12); border-radius: 3px; }
::selection { background: rgba(200,200,200,0.15); color: #e0e0e0; }
