/* MipixLand — только фон (атмосфера). Остальной UI — в page CSS. */
:root {
    --bg: #040308;
}

/* Uiverse-style underline inputs (liyaxu123/warm-eel-62), Mipix orange */
.form-control {
    position: relative;
    margin: 22px 0 28px;
    width: 100%;
}
.form-control input,
.form-control textarea {
    background-color: transparent !important;
    border: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.28);
    display: block;
    width: 100%;
    padding: 14px 0 10px;
    font-size: 16px;
    font-family: 'Quicksand', system-ui, sans-serif;
    font-weight: 600;
    color: #fff !important;
    caret-color: #fff;
    border-radius: 0;
    box-shadow: none !important;
    -webkit-text-fill-color: #fff;
    transition: border-color 0.2s ease;
}
.form-control textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.4;
}
.form-control input:focus,
.form-control input:valid,
.form-control textarea:focus,
.form-control textarea:valid {
    outline: 0;
    /* без оранжевой подсветки — поле не «кричит» */
    border-bottom-color: rgba(255, 255, 255, 0.28);
}
/* Chrome/Safari autofill — без тёмного прямоугольника и без акцента */
.form-control input:-webkit-autofill,
.form-control input:-webkit-autofill:hover,
.form-control input:-webkit-autofill:focus,
.form-control input:-webkit-autofill:active,
.form-control textarea:-webkit-autofill,
.form-control textarea:-webkit-autofill:hover,
.form-control textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    /* цвет модалки — без видимой «плашки» */
    box-shadow: 0 0 0 1000px #161625 inset !important;
    -webkit-box-shadow: 0 0 0 1000px #161625 inset !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.28) !important;
    transition: background-color 99999s ease-out 0s, color 99999s ease-out 0s;
    filter: none;
}
.form-control > label {
    position: absolute;
    top: 14px;
    left: 0;
    pointer-events: none;
    margin: 0;
    display: block;
    text-transform: none;
    letter-spacing: 0;
    z-index: 2;
}
.form-control > label span {
    display: inline-block;
    font-size: 15px;
    min-width: 5px;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Quicksand', system-ui, sans-serif;
    font-weight: 600;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.2s ease;
}
.form-control input:focus + label span,
.form-control input:valid + label span,
.form-control input:-webkit-autofill + label span,
.form-control textarea:focus + label span,
.form-control textarea:valid + label span,
.form-control textarea:-webkit-autofill + label span {
    color: rgba(255, 255, 255, 0.55);
    transform: translateY(-32px);
}
/* hide old static labels when enhanced */
.form-group.mipix-fc-ready > label:not(.mipix-fc-label) {
    display: none !important;
}

body.mipix-shell {
    background: var(--bg);
}

/* Зерно */
body.mipix-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 0);
    background-size: 3px 3px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Ember wash */
body.mipix-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 55% at 50% -10%, rgba(255, 90, 20, 0.28), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 30%, rgba(255, 200, 80, 0.1), transparent 50%),
        radial-gradient(ellipse 45% 35% at 0% 70%, rgba(255, 60, 60, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 110%, rgba(61, 214, 140, 0.06), transparent 45%);
}

section, .page, .profile-page, .toast,
.mipix-page, .config-card, .guide-wrap,
.forum-shell {
    position: relative;
    z-index: 1;
}

/* Новогодний снег на всех страницах mipix-shell */
.ny-snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.75;
}
@media (prefers-reduced-motion: reduce) {
    .ny-snow { display: none; }
}
