:root {
    --orange: #ff8a00;
    --orange-dark: #f97316;
    --orange-soft: #fff1d6;
    --cream: #fff7df;
    --cream-light: #fffdf5;
    --dark: #1f2937;
    --muted: #6b7280;
    --green: #55d6be;
    --red: #ef4444;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(31, 41, 55, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 138, 0, 0.20), transparent 28%),
        radial-gradient(circle at 90% 88%, rgba(85, 214, 190, 0.24), transparent 24%),
        linear-gradient(180deg, var(--cream) 0%, var(--cream-light) 100%);
}

.page {
    min-height: 100vh;
    padding: 28px 64px 42px;
    position: relative;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 42px;
    width: auto;
    display: block;
}

.mini-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.mini-pill {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.main {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 42px;
    min-height: calc(100vh - 90px);
    position: relative;
    z-index: 2;
}

.hero {
    position: relative;
    padding-top: 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    color: var(--orange-dark);
    font-weight: 800;
    margin-bottom: 18px;
    box-shadow: 0 12px 24px rgba(255, 138, 0, 0.10);
}

.eyebrow-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
}

.hero h1 {
    font-size: clamp(40px, 5vw, 68px);
    line-height: 0.98;
    margin: 0 0 18px;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--orange);
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 590px;
    color: var(--muted);
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.soft-button,
.ghost-button {
    border-radius: 16px;
    padding: 13px 18px;
    font-weight: 900;
    cursor: pointer;
}

.soft-button {
    border: 0;
    background: var(--orange);
    color: white;
    box-shadow: 0 16px 28px rgba(255, 138, 0, 0.22);
}

.ghost-button {
    border: 1px solid rgba(255, 138, 0, 0.18);
    background: rgba(255, 255, 255, 0.7);
    color: var(--orange);
}

.mascot-stage {
    position: relative;
    width: min(460px, 90vw);
    height: 330px;
    margin-top: 8px;
}

.mascot-glow {
    position: absolute;
    left: 45px;
    bottom: 24px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff3bf, #d9f99d);
    box-shadow: 0 25px 70px rgba(255, 138, 0, 0.18);
}

.main-mascot {
    position: absolute;
    left: 62px;
    bottom: 34px;
    width: 245px;
    z-index: 2;
    animation: floatMascot 3.2s ease-in-out infinite;
    border-radius: 28px;
    mix-blend-mode: multiply;
}

.mini-mascot {
    position: absolute;
    width: 92px;
    z-index: 3;
    border-radius: 18px;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 10px 18px rgba(31, 41, 55, 0.12));
}

.mini-one {
    right: 50px;
    top: 18px;
    animation: bob 3.8s ease-in-out infinite;
}

.mini-two {
    right: 12px;
    bottom: 32px;
    width: 78px;
    animation: bob 4.1s ease-in-out infinite reverse;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.10);
    border-radius: 20px;
    padding: 13px 16px;
    font-size: 14px;
    color: var(--dark);
    z-index: 4;
}

.floating-card strong {
    color: var(--orange);
}

.floating-a {
    left: 0;
    top: 38px;
    animation: bob 4s ease-in-out infinite;
}

.floating-b {
    left: 230px;
    bottom: 0;
    animation: bob 4.4s ease-in-out infinite reverse;
}

@keyframes floatMascot {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-14px) rotate(2deg);
    }
}

@keyframes bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.auth-panel {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    border-radius: 32px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -70px;
    background: rgba(255, 138, 0, 0.12);
    border-radius: 50%;
}

.auth-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.auth-head img {
    width: 62px;
    height: auto;
    border-radius: 14px;
    mix-blend-mode: multiply;
}

.auth-head h2 {
    margin: 0;
    color: var(--orange);
    font-size: 28px;
}

.auth-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.tabs {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff3d4;
    padding: 6px;
    border-radius: 18px;
    margin-bottom: 20px;
}

.tab-btn {
    border: 0;
    padding: 12px;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    background: transparent;
    color: var(--orange);
    transition: 0.2s ease;
}

.tab-btn.active {
    background: var(--orange);
    color: white;
    box-shadow: 0 8px 18px rgba(255, 138, 0, 0.25);
}

.form-card {
    display: none;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.25s ease;
}

.form-card.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card h3 {
    color: var(--dark);
    font-size: 26px;
    margin: 10px 0 6px;
}

.subtitle {
    color: var(--muted);
    margin-top: 0;
    margin-bottom: 22px;
    line-height: 1.5;
}

label {
    display: block;
    font-weight: 800;
    margin: 14px 0 8px;
}

.input-wrap {
    position: relative;
}

input {
    width: 100%;
    padding: 14px 46px 14px 16px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    font-size: 15px;
    outline: none;
    background: white;
}

input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.12);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 18px;
}

.submit-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--orange);
    color: white;
    border: 0;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 138, 0, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
}

.error {
    position: relative;
    z-index: 1;
    background: #ffe1e1;
    color: #a40000;
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 12px;
}

.note {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

.password-meter {
    margin-top: 8px;
    height: 8px;
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
}

.password-meter span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--red);
    transition: 0.2s ease;
}

.password-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.bubble {
    position: absolute;
    border-radius: 999px;
    opacity: 0.75;
    z-index: 0;
    animation: slowFloat 7s ease-in-out infinite;
}

.bubble-one {
    width: 72px;
    height: 72px;
    background: #fde68a;
    left: 40%;
    top: 18%;
}

.bubble-two {
    width: 48px;
    height: 48px;
    background: #99f6e4;
    right: 8%;
    bottom: 12%;
    animation-delay: 1s;
}

.bubble-three {
    width: 28px;
    height: 28px;
    background: #fdba74;
    left: 12%;
    bottom: 16%;
    animation-delay: 1.4s;
}

@keyframes slowFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}

@media (max-width: 980px) {
    .page {
        padding: 24px;
    }

    .main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 34px;
    }

    .mini-nav {
        display: none;
    }

    .hero h1 {
        font-size: 40px;
    }

    .mascot-stage {
        height: 260px;
    }

    .main-mascot {
        width: 200px;
    }

    .mascot-glow {
        width: 220px;
        height: 220px;
    }

    .floating-b {
        left: 180px;
    }
}

@media (max-width: 560px) {
    .page {
        padding: 20px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .mascot-stage {
        width: 100%;
    }

    .floating-card,
    .mini-mascot {
        display: none;
    }
}
/* =========================================================
   Google button + divider (Phase 3B)
   ========================================================= */
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    color: #9ca3af; font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
    margin: 18px 0 12px;
}
.auth-divider::before, .auth-divider::after {
    content: ""; flex: 1; height: 1px; background: #e5e7eb;
}

.google-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    color: #1f2937;
    font-weight: 600; font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(31, 41, 55, 0.08);
    border-color: #9ca3af;
}
.google-btn:active { transform: translateY(0); }
.google-btn svg { flex: none; }

/* =====================================================================
   REVAMP: Landing page + Auth modal dialog + aset dekoratif (Phase 3C)
   ===================================================================== */

/* Hero jadi full-width (landing), panel dipindah ke modal */
.main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}
.hero {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero .eyebrow { align-self: center; }
.hero-actions { justify-content: center; }

/* Mascot stage tetap tampil di landing */
.mascot-stage { margin-top: 8px; }

/* ---------- Backdrop ---------- */
.auth-backdrop {
    position: fixed; inset: 0;
    background: rgba(31, 41, 55, 0.42);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 40;
}
.auth-backdrop.open { opacity: 1; visibility: visible; }

/* ---------- Modal shell ---------- */
.auth-modal {
    position: fixed; inset: 0;
    display: grid; place-items: center;
    padding: 20px;
    z-index: 50;
    opacity: 0; visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}
.auth-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }

/* Panel di dalam modal */
.auth-modal .auth-panel {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    transform: translateY(20px) scale(.97);
    transition: transform .34s cubic-bezier(.2, .8, .2, 1);
}
.auth-modal.open .auth-panel { transform: none; }

/* Tombol close */
.auth-close {
    position: absolute;
    top: 14px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none; cursor: pointer;
    background: rgba(0, 0, 0, 0.05);
    color: var(--muted);
    font-size: 22px; line-height: 1;
    display: grid; place-items: center;
    transition: background .2s ease, transform .2s ease, color .2s ease;
    z-index: 3;
}
.auth-close:hover { background: var(--orange-soft); color: var(--orange-dark); transform: rotate(90deg); }

/* ---------- Aset dekoratif animasi (SVG floating shapes) ---------- */
.decor-layer {
    position: absolute; inset: 0;
    overflow: hidden; z-index: 0; pointer-events: none;
}
.decor-shape { position: absolute; opacity: .55; will-change: transform; }
.decor-shape.s1 { top: 12%;  left: 6%;  width: 68px;  animation: floatY 7s ease-in-out infinite; }
.decor-shape.s2 { top: 22%;  right: 9%; width: 52px;  animation: floatY 9s ease-in-out infinite reverse; }
.decor-shape.s3 { bottom: 16%; left: 12%; width: 44px; animation: spin 18s linear infinite; }
.decor-shape.s4 { bottom: 24%; right: 14%; width: 60px; animation: floatY 8s ease-in-out infinite; }
.decor-shape.s5 { top: 46%; left: 46%; width: 38px; animation: pulse 5s ease-in-out infinite; }

@keyframes floatY { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(8deg); } }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes pulse  { 0%,100% { transform: scale(1); opacity: .4; } 50% { transform: scale(1.25); opacity: .7; } }

/* Sparkles kecil */
.spark { position: absolute; width: 10px; height: 10px; z-index: 0; pointer-events: none; opacity: .8;
    background: radial-gradient(circle, #ffd08a 0%, transparent 65%); border-radius: 50%;
    animation: twinkle 3.2s ease-in-out infinite; }
.spark.k1 { top: 30%; left: 24%; animation-delay: .2s; }
.spark.k2 { top: 60%; left: 70%; animation-delay: 1.1s; }
.spark.k3 { top: 18%; left: 62%; animation-delay: 2s; }
.spark.k4 { top: 72%; left: 34%; animation-delay: .7s; }
@keyframes twinkle { 0%,100% { transform: scale(.5); opacity: .2; } 50% { transform: scale(1.3); opacity: .9; } }

@media (max-width: 720px) {
    .auth-modal .auth-panel { max-width: 94vw; }
    .decor-shape.s5 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .decor-shape, .spark { animation: none !important; }
}

.mini-pill { background: rgba(255,138,0,.12); color: var(--orange-dark); border: none; cursor: pointer; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; transition: background .2s ease, transform .15s ease; }
.mini-pill:hover { background: rgba(255,138,0,.22); transform: translateY(-1px); }
.mini-pill-primary { background: var(--orange); color: #fff; }
.mini-pill-primary:hover { background: var(--orange-dark); }
