* {
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    min-height: 100vh;

    background-image: url("./bg.png"); /* твой фон */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;

    background-color: #0b0814;
}

body {
    height: 100%;
    width: 512px;
    margin: 0 auto;
    text-align: left;
    font-family: Tahoma, 'Geneva CY', sans-serif;
    font-size: 11pt;
}

h1 {
    margin: 0 0 16px;
    font-weight: normal;
    font-size: 200%;
    line-height: 1.1;
    position: relative;
    overflow: hidden;
}

a {
    color: #663399;
}

.right {
    text-align: right;
}

label.error {
    display: block;
    font-size: 9pt;
    color: #cc0000;
}

#logo {
    width: 564px;
}

table, td {
    width: 100%;
    height: 100%;
    text-align: left;
    vertical-align: middle;
    border-collapse: collapse;
}

input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    text-align: left;
}

.input-id,
.input-password {
    width: 98%;
}

input[type='submit'] {
    border-style: none none solid none;
    border-width: 0 0 2px 0;
    border-color: #ddd;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    height: 31px;
    padding: 0px 13px;
    background: #eee;
}

input[type='submit']:hover {
    background: #ddd;
}

#login-form input {
    margin: 8px 0 0;
    padding: 0px 8px;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
    color: inherit;
    border-radius: 4px;
}

#login-form .input-id,
#login-form .input-password {
    width: 190px;
    height: 32px;
    border: #7742ab solid 2px;
    color: #ffd900;
    background-color: #7742ab;
}

#login-form input[type="submit"] {
    padding: 0px 16px;
    border: none;
    cursor: pointer;
    height: 38px;
    text-align: center;
    color: #783c3c;
    background: #ffd900;
}

#login-form input[type="submit"]:hover {
}

#login-form .error {
    display: block;
    color: #cc0000;
}

table.tbldetails {
    width: 100%;
}

table.tbldetails th, table.tbldetails td {
    vertical-align: top;
    border-top: 1px solid #ddd;
}

table.tbldetails tr:nth-child(1) th, table.tbldetails tr:nth-child(1) td {
    border-top: none;
}

table.tbldetails th {
    width: 20px;
    padding: 7px 5px 7px 7px;
    text-align: right;
    font-weight: normal;
}

table.tbldetails tr.title th {
    padding: 8px;
    text-align: left;
    border-top: none;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    border-radius: 6px 6px 0 0;
    background-color: #f4f4f4;
}

table.tbldetails td {
    padding: 7px 0 7px 5px;
    vertical-align: middle;
    font-weight: normal;
}

/* ====== login page polish (добавь в самый конец файла) ====== */

/* Центруем содержимое только для главной таблицы на странице логина */
body > table td {
    text-align: center;
}

/* Лого + свечение */
#logo{
    display: block;
    margin: 0 auto 14px;
    width: 564px;
    height: auto;

    /* аккуратное свечение вокруг */
    filter:
            drop-shadow(0 0 10px rgba(168, 110, 255, 0.60))
            drop-shadow(0 0 26px rgba(255, 217, 0, 0.21));
    animation: logoGlow 3.2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter:
                drop-shadow(0 0 10px rgba(168, 110, 255, 0.50))
                drop-shadow(0 0 26px rgba(255, 217, 0, 0.16));
    }
    50% {
        filter:
                drop-shadow(0 0 14px rgba(168, 110, 255, 0.72))
                drop-shadow(0 0 34px rgba(255, 217, 0, 0.22));
    }
}

/* Общий цвет текста, чтобы гармонировал с фоном */
body{
    color: rgba(243, 234, 255, 0.92);
}

/* Плашка формы (glassmorphism) */
#login-form{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 10px;
    padding: 14px 14px 12px;

    border-radius: 16px;
    border: 1px solid rgba(190, 150, 255, 0.34);

    background: rgba(16, 10, 30, 0.38);
    box-shadow:
            0 18px 42px rgba(0,0,0,0.55),
            inset 0 0 0 1px rgba(255, 217, 0, 0.07);

    /* если поддерживается — выглядит очень “дорого” на звездном фоне */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Сообщение об ошибке — в аккуратной плашке */
#login-form .error{
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 8px 10px;

    border-radius: 12px;
    border: 1px solid rgba(255, 80, 80, 0.40);
    background: rgba(90, 10, 20, 0.35);
    color: rgba(255, 215, 215, 0.95);

    font-size: 10.5pt;
}

/* Общие настройки инпутов в форме */
#login-form input{
    margin: 0;                 /* перебиваем старые margin */
    border-radius: 12px;       /* мягче */
    outline: none;
    box-sizing: border-box;
}

/* Поля */
#login-form .input-id,
#login-form .input-password{
    width: 210px;
    height: 40px;

    padding: 0 12px;

    color: rgba(255, 227, 120, 0.98);
    background: rgba(119, 66, 171, 0.20);

    border: 1px solid rgba(190, 150, 255, 0.55);
    box-shadow:
            inset 0 0 0 1px rgba(0,0,0,0.22),
            0 0 22px rgba(145, 95, 255, 0.12);

    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

#login-form .input-id::placeholder,
#login-form .input-password::placeholder{
    color: rgba(255, 226, 120, 0.60);
}

/* Фокус — золотой + легкий фиолетовый ореол */
#login-form .input-id:focus,
#login-form .input-password:focus{
    background: rgba(119, 66, 171, 0.26);
    border-color: rgba(255, 217, 0, 0.92);
    box-shadow:
            0 0 0 3px rgba(255, 217, 0, 0.18),
            0 0 30px rgba(145, 95, 255, 0.22),
            inset 0 0 0 1px rgba(0,0,0,0.20);
    transform: translateY(-1px);
}

/* Кнопка */
#login-form input[type="submit"]{
    height: 40px;
    padding: 0 18px;

    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);

    cursor: pointer;
    color: rgba(32, 18, 55, 0.95);
    background: linear-gradient(180deg, #ffe66a 0%, #ffcf15 100%);

    box-shadow:
            0 16px 34px rgba(255, 217, 0, 0.18),
            0 0 26px rgba(255, 217, 0, 0.16);

    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

#login-form input[type="submit"]:hover{
    transform: translateY(-1px);
    box-shadow:
            0 18px 40px rgba(255, 217, 0, 0.22),
            0 0 34px rgba(255, 217, 0, 0.18);
    filter: brightness(1.03);
}

#login-form input[type="submit"]:active{
    transform: translateY(0px);
    filter: brightness(0.98);
}
/* ===== FIX: ошибка не видна, если пустая ===== */
#login-form .error {
    display: none;
}
#login-form .error:not(:empty){
    display: block;
    margin: 10px auto 0;
    padding: 0;
    background: none;
    border: none;
    color: rgba(255, 140, 140, 0.95);
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    font-size: 11pt;
}

/* jquery.validate */
label.error{
    margin-top: 6px;
    color: rgba(255, 140, 140, 0.95);
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* ===== Убираем прозрачную плашку формы ===== */
#login-form{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    padding: 0;
    margin-top: 12px;

    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ===== Пластилиновые поля ===== */
#login-form .input-id,
#login-form .input-password{
    width: 240px;
    height: 58px;
    padding: 0 18px;

    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);

    color: rgba(255, 230, 140, 0.98);
    background: linear-gradient(145deg, rgba(140, 78, 210, 0.92), rgba(86, 45, 155, 0.92));

    /* “пластилин”: объем + мягкие вдавленные края */
    box-shadow:
            0 18px 40px rgba(0,0,0,0.55),
            0 0 22px rgba(155, 90, 255, 0.18),
            inset 0 2px 0 rgba(255,255,255,0.20),
            inset 0 -6px 10px rgba(0,0,0,0.30);

    outline: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, filter .16s ease;
}

#login-form .input-id::placeholder,
#login-form .input-password::placeholder{
    color: rgba(255, 230, 140, 0.55);
}

/* hover/focus — чуть “поднимаем” и даём золотой акцент */
#login-form .input-id:hover,
#login-form .input-password:hover{
    transform: translateY(-1px);
    filter: brightness(1.03);
}

#login-form .input-id:focus,
#login-form .input-password:focus{
    border-color: rgba(255, 217, 0, 0.95);
    box-shadow:
            0 0 0 4px rgba(255, 217, 0, 0.18),
            0 22px 48px rgba(0,0,0,0.58),
            0 0 28px rgba(155, 90, 255, 0.22),
            inset 0 2px 0 rgba(255,255,255,0.22),
            inset 0 -6px 10px rgba(0,0,0,0.28);
}

/* ===== Кнопка (тоже “пластилин”) ===== */
#login-form input[type="submit"]{
    height: 58px;
    padding: 0 26px;

    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.22);

    cursor: pointer;
    color: rgba(35, 20, 55, 0.95);
    background: linear-gradient(145deg, #ffe56a 0%, #ffcf15 100%);

    box-shadow:
            0 20px 44px rgba(0,0,0,0.55),
            0 0 26px rgba(255, 217, 0, 0.22),
            inset 0 2px 0 rgba(255,255,255,0.26),
            inset 0 -6px 10px rgba(0,0,0,0.20);

    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

#login-form input[type="submit"]:hover{
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow:
            0 24px 56px rgba(0,0,0,0.58),
            0 0 34px rgba(255, 217, 0, 0.26),
            inset 0 2px 0 rgba(255,255,255,0.28),
            inset 0 -6px 10px rgba(0,0,0,0.18);
}

#login-form input[type="submit"]:active{
    transform: translateY(1px);
    filter: brightness(0.98);
    box-shadow:
            0 14px 34px rgba(0,0,0,0.55),
            0 0 18px rgba(255, 217, 0, 0.18),
            inset 0 2px 0 rgba(255,255,255,0.18),
            inset 0 -8px 12px rgba(0,0,0,0.28);
}
/* ===== Parallax targets ===== */
#logo,
#login-form{
    will-change: transform;
    transform: translate3d(0,0,0);
}

/* Снег-слой */
#snow-layer{
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Контент поверх снега */
body, body > table{
    position: relative;
    z-index: 1;
}