/* ======================================================
   GLOBAL
====================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    color: #E5E7EB;
    overflow-x: hidden;
}

.page {
    min-height: 100vh;
}
.ebook{
    font-size: 48px; 
}
.page-center,
.content-center {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

/* ======================================================
   🌈 RAINBOW MOVING BACKGROUND (INDEX + SUCCESS SAME)
====================================================== */

.login-bg,
.success-bg {
    background: linear-gradient(
        270deg,
        #ff0066,
        #ff9900,
        #ffee00,
        #33ff00,
        #00ffee,
        #0066ff,
        #aa00ff,
        #ff0066
    );
    background-size: 1600% 1600%;
    animation: rainbowMove 18s ease infinite;
}

@keyframes rainbowMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ======================================================
   LOGIN CARD — GLOSSY
====================================================== */

.card-ui {
    width: 100%;
    max-width: 400px;
    padding: 42px;

    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(16px);

    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.6),
        inset 0 0 30px rgba(255,255,255,0.05);
}

/* ======================================================
   🌈 BRAND TITLE — MOVING RAINBOW TEXT
====================================================== */

.brand-title {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 30px;

    background: linear-gradient(
        90deg,
        #ff0066,
        #ff9900,
        #ffee00,
        #33ff00,
        #00ffee,
        #0066ff,
        #aa00ff
    );

    background-size: 400% 400%;
    animation: rainbowMove 6s linear infinite;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ======================================================
   INPUT
====================================================== */

input#phone {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 14px;
    font-size: 1.05rem;
    border-radius: 12px;
    margin-bottom: 18px;
}

input#phone::placeholder {
    color: rgba(255,255,255,0.65);
}

input#phone:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
}

/* ======================================================
   BUTTON — RAINBOW GLOSSY
====================================================== */

.btn-primary-ui {
    width: 100%;
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 12px;

    background: linear-gradient(
        270deg,
        #ff0066,
        #ff9900,
        #ffee00,
        #33ff00,
        #00ffee,
        #0066ff,
        #aa00ff
    );

    background-size: 400% 400%;
    animation: rainbowMove 8s linear infinite;

    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary-ui:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

/* ======================================================
   ERROR TEXT
====================================================== */

.error-text {
    margin-top: 12px;
    color: #ffe0e0;
    font-size: 0.95rem;
}

/* ======================================================
   SUCCESS PAGE
====================================================== */

#fireworks {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 2;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 22px;
    padding: 20px;
}

/* ======================================================
   COUNTER — KEEP RAINBOW TEXT
====================================================== */

.counter {
    font-size: clamp(80px, 12vw, 150px);
    font-weight: 900;

    background: linear-gradient(
        90deg,
        #ff0066,
        #ff9900,
        #ffee00,
        #33ff00,
        #00ffee,
        #0066ff,
        #aa00ff
    );

    background-size: 400% 400%;
    animation: rainbowMove 6s linear infinite, pulse 0.7s infinite alternate;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

/* ======================================================
   🎉 CONGRATS TEXT — REDUCED SIZE
====================================================== */

.congrats-text {
    font-weight: 900;
    font-size: clamp(42px, 6vw, 68px); /* reduced */
    fill: url(#emerald-gradient);
    filter: drop-shadow(0 0 12px rgba(0,0,0,0.35));
}

/* ======================================================
   BOTTOM TEXT
====================================================== */

#bottom {
    font-size: 1.35rem;
    color: #ffffff;
    max-width: 820px;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(0,0,0,0.35);
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media(max-width: 600px) {
    .counter { font-size: 64px; }
    .congrats-text { font-size: 40px; }
    #bottom { font-size: 1.05rem; }
    .ebook{
    font-size: 32px; 
    margin-bottom: 0px;
}
}
