/* ============ LOGIN.HTML (spesifik) ============ */

:root {
    --bg: #06060d;
    --surface: rgba(255, 255, 255, 0.028);
    --surface-2: rgba(255, 255, 255, 0.045);
    --surface-3: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.055);
    --border-hover: rgba(255, 255, 255, 0.13);
    --text: #f5f5f7;
    --muted: rgba(245, 245, 247, 0.55);
    --muted-2: rgba(245, 245, 247, 0.3);
    --lime: #d4ff3a;
    --lime-2: #b8e62e;
    --coral: #ff6b6b;
    --green: #4ade80;
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --anime: url('https://c.termai.cc/i183/NJF.jpg');
  }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Onest', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1.5rem 1rem;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.005em;
    position: relative;
  }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 70% 50% at 30% -10%, rgba(212, 255, 58, 0.08), transparent 60%),
      radial-gradient(ellipse 60% 40% at 100% 30%, rgba(167, 139, 250, 0.07), transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: ambientShift 25s ease-in-out infinite;
  }

@keyframes ambientShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(2%, -2%) scale(1.05); }
  }

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.03 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
  }

.login-wrap {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: cardIn 0.9s var(--ease-spring) both;
  }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--muted);
    font-size: 0.8125rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
    transition: all 0.4s var(--ease-out);
  }

.back-home:hover {
    background: var(--surface-2);
    color: var(--text);
    transform: translateX(-3px);
  }

.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
  }

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(212, 255, 58, 0.06), transparent 30%);
    animation: spin 20s linear infinite;
    pointer-events: none;
  }

@keyframes spin { to { transform: rotate(360deg); } }

.login-card > * { position: relative; z-index: 1; }

.login-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.5rem;
    justify-content: center;
  }

.login-mark {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: var(--anime) center/cover;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(212, 255, 58, 0.2);
    animation: floatMark 4s ease-in-out infinite;
  }

@keyframes floatMark {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }

.login-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
    background-size: 250% 100%;
    animation: shimmer 3.5s linear infinite;
  }

@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
  }

.login-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.375rem;
  }

.login-sub {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
  }

.tabs {
    display: flex;
    gap: 0.375rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.375rem;
    border-radius: 0.875rem;
    margin-bottom: 1.75rem;
  }

.tab {
    flex: 1;
    padding: 0.625rem;
    text-align: center;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    background: transparent;
    border: none;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
  }

.tab.active {
    background: var(--lime);
    color: #07070f;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(212, 255, 58, 0.3);
  }

.field { margin-bottom: 1rem; }

.field label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted-2);
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

.field input {
    width: 100%;
    padding: 0.9375rem 1.125rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9375rem;
    font-family: inherit;
    outline: none;
    transition: all 0.4s var(--ease-out);
  }

.field input:focus {
    border-color: var(--lime);
    background: var(--surface-2);
    box-shadow: 0 0 0 4px rgba(212, 255, 58, 0.08);
  }

.field input::placeholder { color: var(--muted-2); }

.btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    border: none;
    background: var(--lime);
    color: #07070f;
    margin-top: 0.5rem;
  }

.btn:hover {
    background: var(--lime-2);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(212, 255, 58, 0.35);
  }

.btn:active { transform: translateY(-1px) scale(0.98); }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }

.info-bonus {
    margin-top: 1.25rem;
    padding: 0.875rem 1rem;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 0.875rem;
    font-size: 0.8125rem;
    color: var(--green);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

.error {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.25);
    border-radius: 0.875rem;
    font-size: 0.8125rem;
    color: var(--coral);
    display: none;
    animation: shake 0.4s var(--ease-out);
  }

.error.show { display: block; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
  }

.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--muted);
  }

.loading.show { display: flex; }

.spinner {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid rgba(212, 255, 58, 0.2);
    border-top-color: var(--lime);
    border-radius: 9999px;
    animation: spinFast 0.8s linear infinite;
  }

@keyframes spinFast { to { transform: rotate(360deg); } }

.tab-content { animation: fadeSlide 0.5s var(--ease-out) both; }

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

.hidden { display: none !important; }

.success-modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 13, 0.85);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
  }

.success-modal.show { display: flex; }

.success-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: cardIn 0.6s var(--ease-spring) both;
  }

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.8s var(--ease-spring) both;
  }

@keyframes bounce {
    0% { transform: scale(0) rotate(-20deg); }
    60% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
  }

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--lime);
  }

.success-desc {
    font-size: 0.9375rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
    line-height: 1.5;
  }

/* footer login: statis di bawah kartu, ga ganggu center */
body > .site-footer { position: static; opacity:.55; font-size:.75rem; margin-top:.4rem; }
body > .back-home { order:0; }
body > .login-wrap { order:1; }
body > .site-footer { order:2; }
