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

/* ── Body ── */
body {
    font-family: 'Orbitron', monospace;
    position: relative;
    background: #0a0a0a;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 216, 0, 0.15) 2%, transparent 2.5%),
        radial-gradient(circle at 80% 70%, rgba(255, 200, 0, 0.10) 1.5%, transparent 2%);
    background-size: 40px 40px, 30px 30px;
    background-attachment: fixed;
    min-height: 100vh;
}

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

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

header a img {
    max-width: 250px;
    height: auto;
    display: inline-block;
    margin-bottom: 10px;
    transition: filter 0.4s ease, transform 0.3s ease;
    animation: logoPulse 3s ease-in-out infinite;
}

header a img:hover {
    transform: scale(1.05);
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(255,216,0,0.5)) drop-shadow(0 0 14px rgba(255,170,0,0.2));
    }
    50% {
        filter: drop-shadow(0 0 14px rgba(255,216,0,0.95)) drop-shadow(0 0 30px rgba(255,170,0,0.5));
    }
}

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

.welcome h3 {
    font-size: 14px;
    color: #ffd800;
    overflow: hidden;
    border-right: 0.15em solid #ffd800;
    white-space: nowrap;
    letter-spacing: 0.09em;
    text-shadow: 0 0 5px #ffaa00;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

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

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

/* ── Banner ── */
.banner {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 216, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner:hover {
    transform: scale(1.02);
    box-shadow: 0 0 35px rgba(255, 216, 0, 0.55);
}

/* ── Buttons shared ── */
.btn-login,
.btn-daftar {
    display: block;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    margin-top: 20px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    z-index: 0;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Shine sweep */
.btn-login::before,
.btn-daftar::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 55%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-15deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn-login:hover::before,
.btn-daftar:hover::before {
    left: 150%;
}

/* ── LOGIN button (gold solid) ── */
.btn-login {
    background: linear-gradient(135deg, #ffd800, #ffaa00, #ffe566, #ffaa00);
    background-size: 300% 300%;
    color: #000;
    box-shadow: 0 5px 15px rgba(255, 216, 0, 0.45), 0 0 0 0 rgba(255,216,0,0.3);
    animation: goldShift 4s ease infinite, loginPulse 2.6s ease-in-out infinite;
}

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

@keyframes loginPulse {
    0%, 100% { box-shadow: 0 5px 15px rgba(255,216,0,0.45), 0 0 0 0   rgba(255,216,0,0.3); }
    50%       { box-shadow: 0 5px 20px rgba(255,216,0,0.65), 0 0 0 10px rgba(255,216,0,0); }
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 216, 0, 0.7);
}

/* ── DAFTAR button (dark + gold glow border) ── */
.btn-daftar {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    color: #ffd800;
    border: 1px solid rgba(255, 216, 0, 0.5);
    box-shadow: 0 0 12px rgba(255, 216, 0, 0.25), inset 0 0 10px rgba(255,216,0,0.04);
    animation: daftarGlow 3s ease-in-out infinite;
}

@keyframes daftarGlow {
    0%, 100% {
        border-color: rgba(255,216,0,0.4);
        box-shadow: 0 0 12px rgba(255,216,0,0.25), inset 0 0 10px rgba(255,216,0,0.04);
    }
    50% {
        border-color: rgba(255,216,0,0.9);
        box-shadow: 0 0 25px rgba(255,216,0,0.55), inset 0 0 16px rgba(255,216,0,0.10);
    }
}

.btn-daftar:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #282828, #181818);
    box-shadow: 0 0 30px rgba(255, 216, 0, 0.6);
    color: #fff;
}

/* ── Copyright ── */
.copyright {
    text-align: center;
    color: #888;
    font-size: 11px;
    margin-top: 20px;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}

.copyright a {
    color: #ffbb00;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.copyright a:hover {
    color: #ffe066;
}

/* Aggressive logo + button effects only */
header img,
header a img {
    animation: logoAggressivePulse 1.4s infinite ease-in-out;
    filter: drop-shadow(0 0 8px rgba(255, 0, 255, 0.9));
    transition: transform 0.25s ease, filter 0.25s ease;
}

header img:hover,
header a img:hover {
    transform: scale(1.18) rotate(-3deg);
    filter:
        drop-shadow(0 0 12px rgba(255, 0, 255, 1))
        drop-shadow(0 0 26px rgba(132, 0, 255, 1));
}

@keyframes logoAggressivePulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 0, 255, 0.85));
    }
    50% {
        transform: scale(1.08);
        filter:
            drop-shadow(0 0 18px rgba(255, 0, 255, 1))
            drop-shadow(0 0 34px rgba(132, 0, 255, 1));
    }
}

.btn-login,
.btn-daftar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #5b00ff, #b000ff, #ff00d4);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 0 12px rgba(176, 0, 255, 0.9),
        0 0 28px rgba(255, 0, 212, 0.65);
    animation: buttonAggressiveGlow 1.2s infinite alternate;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-login::before,
.btn-daftar::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.75), transparent);
    transform: skewX(-25deg);
    animation: buttonShine 1.8s infinite;
    pointer-events: none;
}

.btn-login:hover,
.btn-daftar:hover {
    transform: translateY(-5px) scale(1.08);
    filter: brightness(1.25);
    box-shadow:
        0 0 18px rgba(255, 0, 212, 1),
        0 0 42px rgba(176, 0, 255, 1),
        0 0 70px rgba(91, 0, 255, 0.9);
}

.btn-login:active,
.btn-daftar:active {
    transform: scale(0.94);
}

@keyframes buttonAggressiveGlow {
    from {
        box-shadow:
            0 0 10px rgba(176, 0, 255, 0.8),
            0 0 22px rgba(255, 0, 212, 0.55);
    }
    to {
        box-shadow:
            0 0 20px rgba(255, 0, 212, 1),
            0 0 46px rgba(176, 0, 255, 1);
    }
}

@keyframes buttonShine {
    0% { left: -120%; }
    45%, 100% { left: 140%; }
}
