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

/* ── Body ── */
body {
    font-family: monospace;
    position: relative;
    background: #000000;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.28), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(126, 34, 206, 0.24), transparent 25%),
        radial-gradient(#1e1e1e 5%, transparent 50%);
    background-size: 100% 100%, 100% 100%, 5px 5px;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: -80px;
    pointer-events: none;
    background:
        conic-gradient(from 180deg, transparent, rgba(168, 85, 247, 0.18), transparent 35%, rgba(236, 72, 153, 0.16), transparent 70%);
    filter: blur(55px);
    opacity: 0.9;
    animation: bgRage 8s linear infinite;
    z-index: 0;
}

@keyframes bgRage {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.08); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ── Container ── */
.container {
    max-width: 400px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ── Header / Logo ── */
header {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
}

header::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 280px;
    height: 110px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.55), rgba(126, 34, 206, 0.18) 45%, transparent 72%);
    filter: blur(12px);
    animation: logoAura 1.4s ease-in-out infinite alternate;
    z-index: -1;
}

header a {
    display: inline-block;
    position: relative;
}

header a img {
    max-width: 231px;
    height: auto;
    display: inline-block;
    transform-origin: center;
    filter:
        drop-shadow(0 0 8px rgba(168, 85, 247, 0.95))
        drop-shadow(0 0 18px rgba(126, 34, 206, 0.75));
    animation: logoAttack 1.65s ease-in-out infinite, logoFlicker 2.8s linear infinite;
    transition: transform 0.18s ease, filter 0.18s ease;
}

header a:hover img {
    transform: scale(1.16) rotate(-3deg);
    filter:
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.95))
        drop-shadow(0 0 24px rgba(168, 85, 247, 1))
        drop-shadow(0 0 42px rgba(236, 72, 153, 0.9));
}

@keyframes logoAura {
    from { opacity: 0.55; transform: translate(-50%, -50%) scale(0.88); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1.14); }
}

@keyframes logoAttack {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    18% { transform: translateY(-8px) scale(1.045) rotate(-1.5deg); }
    36% { transform: translateY(2px) scale(0.99) rotate(1.2deg); }
    55% { transform: translateY(-5px) scale(1.035) rotate(1.8deg); }
    75% { transform: translateY(1px) scale(1.01) rotate(-0.8deg); }
}

@keyframes logoFlicker {
    0%, 19%, 21%, 55%, 57%, 100% { opacity: 1; }
    20%, 56% { opacity: 0.78; }
}

/* ── Typewriter heading ── */
.welcome {
    max-width: 350px;
    margin: 0 auto 12px;
}

.welcome h3 {
    font-size: 12px;
    color: #fff;
    overflow: hidden;
    border-right: 0.15em solid #a855f7;
    white-space: nowrap;
    letter-spacing: 0.09em;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.9), 0 0 16px rgba(126, 34, 206, 0.75);
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite, textPulse 1.8s ease-in-out infinite;
}

@keyframes typing {
    from { width: 0; }
    to   { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #a855f7; }
}

@keyframes textPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.45); }
}

/* ── Banner ── */
.banner {
    border-radius: 14px;
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(168, 85, 247, 0.65);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 20px rgba(126, 34, 206, 0.42),
        0 0 45px rgba(168, 85, 247, 0.2);
    animation: bannerGlow 2.4s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
    from { filter: saturate(1) contrast(1); box-shadow: 0 0 18px rgba(126, 34, 206, 0.35), 0 0 35px rgba(168, 85, 247, 0.18); }
    to { filter: saturate(1.18) contrast(1.07); box-shadow: 0 0 28px rgba(168, 85, 247, 0.72), 0 0 70px rgba(236, 72, 153, 0.28); }
}

/* ── Buttons ── */
.btn-login,
.btn-daftar {
    display: block;
    padding: 13px 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    background: linear-gradient(90deg, #4c1d95, #7e22ce, #a855f7, #ec4899, #7e22ce, #4c1d95);
    background-size: 320% 100%;
    margin-top: 12px;
    border-radius: 14px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow:
        0 0 0 1px rgba(168, 85, 247, 0.35) inset,
        0 10px 24px rgba(0, 0, 0, 0.55),
        0 0 18px rgba(168, 85, 247, 0.75),
        0 0 40px rgba(126, 34, 206, 0.45);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.85), 0 0 18px rgba(255, 255, 255, 0.25);
    animation: buttonGradient 2.1s linear infinite, buttonPulse 1.25s ease-in-out infinite alternate;
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.btn-login::before,
.btn-daftar::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg, transparent 0%, transparent 35%, rgba(255, 255, 255, 0.88) 50%, transparent 65%, transparent 100%);
    transform: translateX(-130%) skewX(-18deg);
    animation: buttonShine 1.55s ease-in-out infinite;
    z-index: -1;
}

.btn-login::after,
.btn-daftar::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent 45%);
    pointer-events: none;
}

.btn-login:hover,
.btn-daftar:hover {
    transform: translateY(-5px) scale(1.045);
    filter: brightness(1.22) saturate(1.35);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.35) inset,
        0 16px 30px rgba(0, 0, 0, 0.68),
        0 0 25px rgba(255, 255, 255, 0.28),
        0 0 42px rgba(168, 85, 247, 1),
        0 0 85px rgba(236, 72, 153, 0.65);
}

.btn-login:active,
.btn-daftar:active {
    transform: translateY(1px) scale(0.97);
}

@keyframes buttonGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 320% 50%; }
}

@keyframes buttonPulse {
    from { box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.35) inset, 0 10px 24px rgba(0,0,0,0.55), 0 0 16px rgba(168, 85, 247, 0.68), 0 0 34px rgba(126, 34, 206, 0.38); }
    to { box-shadow: 0 0 0 1px rgba(255,255,255,0.22) inset, 0 12px 28px rgba(0,0,0,0.65), 0 0 30px rgba(168, 85, 247, 1), 0 0 62px rgba(236, 72, 153, 0.48); }
}

@keyframes buttonShine {
    0% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
    25% { opacity: 1; }
    55% { transform: translateX(140%) skewX(-18deg); opacity: 1; }
    100% { transform: translateX(140%) skewX(-18deg); opacity: 0; }
}

/* ── Copyright ── */
.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.68);
    margin-top: 14px;
    font-size: 13px;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.55);
}

.copyright a {
    color: #c084fc;
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
