/* ---------------- BASE ---------------- */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;

    background: radial-gradient(circle at top, #0b1a2a, #000000);

    min-height: 100vh;
    overflow-x: hidden;

    display: flex;
    flex-direction: column;
}

/* ---------------- CANVAS LAYERS ---------------- */

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* отдельные слои (если нужно управлять глубиной) */

#nebula { z-index: 0; }
#bg     { z-index: 1; }
#stars  { z-index: 2; }
#fx     { z-index: 3; }

/* ---------------- PAGE LAYOUT ---------------- */

header, main, footer {
    position: relative;
    z-index: 10;
}

/* main занимает всё доступное пространство */
main {
    flex: 1;
}

/* footer всегда снизу */
footer {
    margin-top: auto;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    opacity: 0.5;
}

/* ---------------- TYPOGRAPHY ---------------- */

h1 {
    font-size: 34px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

p {
    font-size: 16px;
    opacity: 0.7;
    line-height: 1.6;
}

/* ---------------- LINKS ---------------- */

a {
    color: white;
    opacity: 0.7;
    text-decoration: none;
}

a:hover {
    opacity: 1;
}

/* ---------------- CENTER BLOCKS ---------------- */

.center {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* ---------------- GLASS CARD ---------------- */

.card {
    max-width: 600px;
    padding: 30px;
    border-radius: 16px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 40px rgba(0,0,0,0.6);

    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- FORMS ---------------- */

input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;

    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);

    background: rgba(0,0,0,0.3);
    color: white;
    outline: none;
}

button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;

    border-radius: 10px;
    border: none;

    cursor: pointer;

    background: rgba(255,255,255,0.15);
    color: white;

    transition: 0.3s;
}

button:hover {
    background: rgba(255,255,255,0.25);
}

#loader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;

    opacity: 1;
    transition: opacity 1.2s ease;
}

.loader-text {
    font-size: 14px;
    letter-spacing: 3px;
    opacity: 0.7;
}
