﻿body {
    background-image: var(--page-background, url("img/background.jpg"));
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 32px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-shadow: #000 0 0 3px;
}

img {
    border: 0;
}

table.reg {
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 28px 34px 30px;
    background: rgba(7, 10, 18, 0.62);
    border: 1px solid rgba(255, 195, 32, 0.28);
    border-radius: 12px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

table.reg > tbody > tr:first-child td {
    text-align: center;
}

table.reg img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

table.reg img.slogan-banner {
    width: min(290px, 48%);
    display: block;
    margin: -60px auto 12px;
}

div.copy {
    color: #ccc;
    font-size: 12px;
    font-family: Arial, sans-serif;
    text-align: center;
}

div.errors {
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.offline-panel {
    text-align: center;
}

.offline-marker {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4b4b;
    font-size: 24px;
    border: 1px solid rgba(255, 75, 75, 0.45);
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.12);
    box-shadow: 0 0 18px rgba(255, 0, 0, 0.2);
}

.offline-title {
    margin: 0 0 12px;
    color: #ff4b4b;
    font-family: Arial, sans-serif;
    font-size: 34px;
    line-height: 1.1;
    text-shadow: 0 0 14px rgba(255, 0, 0, 0.7);
}

.offline-copy {
    margin: 8px 0;
    color: #f4efe5;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

.status-box {
    margin: 24px auto;
    padding: 16px 18px;
    color: #f7ead0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: left;
    background: rgba(255, 64, 64, 0.12);
    border: 1px solid rgba(255, 75, 75, 0.38);
    border-radius: 8px;
}

.status-box p {
    margin: 8px 0;
}

table.form {
    width: 100%;
    color: #fff;
    margin: 15px 0;
    font-family: Arial, sans-serif;
    border-spacing: 0 10px;
    font-size: 16px;
}

table.form td:first-child {
    width: 46%;
    padding-right: 10px;
    box-sizing: border-box;
}

input,
select {
    width: 100%;
    max-width: 220px;
    padding: 7px 8px;
    background-color: #f7f7f7;
    color: #454545;
    border: 0;
    font-size: 14px;
    border-radius: 3px;
    box-shadow: 0 0 3px #000;
    box-sizing: border-box;
}

input:focus,
select:focus {
    box-shadow: 0 0 3px #fff;
    color: #1b1b1b;
}

input:disabled,
select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

input.sbm {
    width: auto;
    padding: 8px 28px;
    background-color: #a14d05;
    color: #ffffff;
    border: none;
    font-size: 14px;
    border-radius: 6px;
    margin-top: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
}

input.sbm:hover {
    background-color: #d36405;
}

input.sbm:disabled,
input.sbm:disabled:hover {
    background-color: #5b4b34;
    cursor: not-allowed;
}

A {
    text-decoration: none;
}

.copy a {
    color: #ffc320;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.copy a:hover {
    color: #ffffff;
    text-decoration: none;
}

.fixed-corner {
    position: fixed;
    bottom: 18px;
    right: 20px;
    z-index: 9999;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    font-weight: normal;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 40px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(196, 89, 255, 0.6);
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
}

.fixed-corner a {
    color: #d9c8ff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fixed-corner:hover {
    background-color: rgba(0, 0, 0, 0.85);
    border-color: #c459ff;
    transform: scale(1.02);
}

.fixed-corner a:hover {
    color: #ffffff;
}

@media (max-width: 650px) {
    body {
        align-items: flex-start;
        padding: 20px 12px;
    }

    table.reg {
        padding: 22px 16px 24px;
    }

    table.form,
    table.form tbody,
    table.form tr,
    table.form td {
        display: block;
        width: 100%;
        text-align: left;
    }

    table.form td:first-child {
        width: 100%;
        padding: 0 0 4px;
    }

    input,
    select {
        max-width: none;
    }

    input.sbm {
        width: 100%;
    }

    .fixed-corner {
        font-size: 10px;
        padding: 4px 12px;
        bottom: 10px;
        right: 10px;
    }
}
