@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

body {
    background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Wadah Animasi JS */
#ocean {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.sea-element {
    position: absolute;
    will-change: transform;
}

/* Animasi Ikan Ekor & Sirip Bergerak */
.fish-wrapper {
    display: inline-block;
    will-change: transform;
}

.fish-tail-group {
    transform-origin: 30px 35px;
    animation: flapTail 0.25s infinite ease-in-out alternate;
}

.fish-fin {
    transform-origin: 65px 15px;
    animation: flapFin 0.4s infinite ease-in-out alternate;
}

@keyframes flapTail {
    0% { transform: rotate(-25deg); }
    100% { transform: rotate(25deg); }
}

@keyframes flapFin {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(10deg); }
}

/* Gelembung */
.bubble {
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
    border-radius: 50%;
}

/* Animasi Gurita Cumi (Tentakel Mengayun) */
.octopus-avatar {
    position: absolute;
    top: -90px;
    left: 50%;
    transform-origin: center bottom;
    will-change: transform;
}

.tentacle {
    transform-origin: 100px 120px;
}
.t1 { animation: swing 2s infinite ease-in-out alternate 0.1s; }
.t2 { animation: swing 2.2s infinite ease-in-out alternate 0.3s; }
.t3 { animation: swing 2.1s infinite ease-in-out alternate 0.5s; }
.t4 { animation: swing 2.3s infinite ease-in-out alternate 0.2s; }

@keyframes swing {
    0% { transform: rotate(-12deg) scaleY(0.95); }
    100% { transform: rotate(12deg) scaleY(1.05); }
}

/* Ombak */
.waves-container {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 20vh;
    z-index: 1; pointer-events: none;
}

.wave {
    position: absolute; bottom: 0; left: 0;
    width: 200%; height: 100%;
    background-repeat: repeat-x;
    background-size: 50% 100%;
}

.wave-1 {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%237dd3fc" fill-opacity="0.8" d="M0,160L48,170.7C96,181,192,203,288,197.3C384,192,480,160,576,165.3C672,171,768,213,864,224C960,235,1056,213,1152,192C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320Z"></path></svg>');
    animation: waveFlow 12s linear infinite;
}

.wave-2 {
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%2338bdf8" fill-opacity="1" d="M0,192L48,181.3C96,171,192,149,288,160C384,171,480,213,576,213.3C672,213,768,171,864,149.3C960,128,1056,128,1152,149.3C1248,171,1344,213,1392,234.7L1440,256L1440,320L1392,320Z"></path></svg>');
    animation: waveFlow 8s linear infinite reverse;
}

@keyframes waveFlow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* UI Login Soft Neobrutalism */
.login-box {
    background: #ffffff;
    width: 90%; max-width: 400px;
    padding: 50px 30px 40px;
    border-radius: 16px;
    border: 3px solid #0f172a;
    box-shadow: 8px 8px 0px #0f172a;
    position: relative;
    z-index: 10;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-box:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0px #0f172a;
}

.login-title {
    color: #0f172a;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.login-subtitle {
    color: #475569;
    font-weight: 700;
    margin-bottom: 30px;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 2px solid #0f172a;
    background-color: #f8fafc;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    outline: none;
    transition: all 0.2s;
}

.input-group input:focus {
    background-color: #ffffff;
    box-shadow: 4px 4px 0px #38bdf8;
    transform: translate(-2px, -2px);
}

.login-btn {
    width: 100%;
    padding: 15px;
    border: 3px solid #0f172a;
    border-radius: 8px;
    background: #38bdf8;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 4px 4px 0px #0f172a;
    transition: all 0.1s;
}

.login-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #0f172a;
}
