/* ===== RESET ===== */

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* =========================
   PRELOADER
   ========================= */

#loader {
    position: fixed;
    inset: 0;
    background: #fbfbfb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scene {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.cat, .mouse {
    position: absolute;
    pointer-events: none;
}

.mouse {
    height: 90px;
}

.cat {
    height: 80px;
}

.loading-text {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #444;
    letter-spacing: 1px;
}

.dots span {
    display: inline-block;
    animation: jump 1.2s infinite;
}

.dots span:nth-child(1) { animation-delay: 0s; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes jump {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}
/* =========================
   APP
   ========================= */

#app {
    display: none;
    min-height: 100vh;
    background: radial-gradient(circle at 30% 20%, #ffe4f7, #d7f0ff 60%, #fdf6e3);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

/* ===== FORM ===== */

.form-container {
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff, #f9f3ff);
    box-shadow:
            0 25px 60px rgba(0,0,0,0.12),
            inset 0 0 0 2px #f3d6ff;
    border: 2px dashed #d9a7ff;
    position: relative;
}

.form-container h2 {
    margin-bottom: 30px;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: #7a3eb1;
}
/* INPUT */

.input-group {
    position: relative;
    margin-bottom: 25px;
}
.input-group input {
    border-bottom: 2px solid #cfaaff;
}

.input-group input:focus {
    border-bottom: 2px solid #7a3eb1;
}


.input-group input {
    width: 100%;
    padding: 16px 12px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    outline: none;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    left: 12px;
    top: 16px;
    color: #999;
    font-size: 14px;
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -8px;
    font-size: 12px;
    color: #7a3eb1;
}

/* BUTTON */

.submit-btn:active {
    transform: scale(0.96);
}
.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #c471ed, #f64f59);
    box-shadow: 0 8px 20px rgba(198, 113, 237, 0.4);
    color: white;
    cursor: pointer;
    transition: 0.2s ease;
}

.submit-btn:active {
    transform: scale(0.97);
}

.cat {
    top: 125px !important;
}
.mouse {
    top: 110px !important;
}
.mouse {
    z-index: 2;
}

.cat {
    z-index: 1;
}