:root {
    font-family: Georgia, "Times New Roman", serif;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    background: #111;
}

button,
input {
    font: inherit;
}

/* Фоновая фотография */

.background {
    position: fixed;
    inset: -60px;

    background-image: url("/static/background.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    filter: blur(30px);
    transform: scale(1.1);
}

/* Затемнение поверх фотографии */

.overlay {
    position: fixed;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.3) 65%,
            rgba(0, 0, 0, 0.48) 100%
        );
}

/* Центрирование формы */

.page {
    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    padding: 24px;
}

/* Стеклянная карточка */

.login-card {
    width: min(100%, 470px);
    padding: 44px 42px 38px;

    background: rgba(95, 98, 105, 0.24);

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 22px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.login-card h1 {
    margin: 0 0 34px;

    color: #fff;

    font-size: 42px;
    font-weight: 400;
    line-height: 1;
    text-align: center;

    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.42);
}

/* Поля */

.field {
    display: flex;
    align-items: center;
    gap: 14px;

    height: 66px;
    margin-bottom: 20px;
    padding: 0 17px;

    background: rgba(20, 22, 28, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 12px;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.field:focus-within {
    background: rgba(20, 22, 28, 0.18);
    border-color: rgba(255, 255, 255, 0.82);

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.08);
}

.icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.icon svg,
.show-password svg {
    width: 24px;
    height: 24px;

    fill: none;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.field input {
    flex: 1;
    min-width: 0;

    padding: 0;

    color: #fff;
    background: transparent;

    border: 0;
    outline: 0;

    font-size: 21px;
}

.field input::placeholder {
    color: rgba(255, 255, 255, 0.75);
    opacity: 1;
}

/* Кнопка показа пароля */

.show-password {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    padding: 7px;

    color: #fff;
    background: transparent;

    border: 0;
    border-radius: 7px;

    cursor: pointer;
}

.show-password:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Кнопка входа */

.submit-button {
    width: 100%;
    height: 64px;
    margin-top: 3px;

    color: #fff;

    background:
        linear-gradient(
            100deg,
            #2a5ba9 0%,
            #173f79 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;

    box-shadow:
        0 12px 32px rgba(4, 25, 62, 0.32);

    font-size: 22px;

    cursor: pointer;

    transition:
        transform 0.14s ease,
        filter 0.14s ease;
}

.submit-button:hover {
    filter: brightness(1.1);
}

.submit-button:active {
    transform: translateY(1px);
}

/* Мобильная версия */

@media (max-width: 560px) {
    .page {
        padding: 18px;
    }

    .login-card {
        padding: 36px 23px 28px;
        border-radius: 18px;
    }

    .login-card h1 {
        margin-bottom: 29px;
        font-size: 35px;
    }

    .field {
        height: 60px;
        padding: 0 15px;
    }

    .field input {
        font-size: 19px;
    }

    .submit-button {
        height: 60px;
        font-size: 20px;
    }
}

.error {
    margin: -15px 0 22px;
    padding: 11px 14px;

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

    background: rgba(110, 0, 0, 0.24);
    color: white;

    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: center;
}


/* =========================================================
   Страница после авторизации: «Законы Атерена»
   ========================================================= */

.laws-page {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;

    color: #fff;
    background: #111;
}

.laws-background {
    position: fixed;
    inset: 0;

    background-image: url("/static/background.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    /* На этой странице фотография остаётся чёткой */
    filter: none;
    transform: none;
}

.laws-overlay {
    position: fixed;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 7, 12, 0.64) 0%,
            rgba(4, 7, 12, 0.32) 48%,
            rgba(4, 7, 12, 0.09) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.04) 55%,
            rgba(0, 0, 0, 0.25) 100%
        );
}

.laws-layout {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;

    min-height: 100vh;
    min-height: 100dvh;

    padding: 64px clamp(28px, 6vw, 110px);
}

.laws-card {
    width: min(650px, 100%);
    padding: 38px 46px 30px;

    background:
        linear-gradient(
            145deg,
            rgba(21, 25, 31, 0.78),
            rgba(53, 57, 62, 0.42)
        );

    border: 1px solid rgba(218, 177, 103, 0.68);
    border-radius: 20px;

    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        0 0 24px rgba(199, 151, 72, 0.08);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.laws-emblem {
    display: flex;
    justify-content: center;

    margin: 0 auto 10px;
}

.laws-emblem svg {
    width: 70px;
    height: 70px;

    fill: none;
    stroke: #d6ad67;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.laws-card > h1 {
    margin: 0;

    color: #f5f1e8;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 400;
    line-height: 1.1;
    text-align: center;

    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
}

.laws-title-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;

    margin: 22px 0 7px;
}

.laws-title-divider span {
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(214, 173, 103, 0.7)
        );
}

.laws-title-divider span:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(214, 173, 103, 0.7),
            transparent
        );
}

.laws-title-divider i {
    width: 9px;
    height: 9px;

    border: 1px solid #d6ad67;
    transform: rotate(45deg);
}

.laws-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.law-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    align-items: center;

    padding: 20px 2px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.law-item:last-child {
    border-bottom: 0;
    padding-bottom: 9px;
}

.law-number {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    color: #efd297;

    border: 1px solid rgba(222, 179, 104, 0.9);
    border-radius: 50%;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;

    background: rgba(0, 0, 0, 0.14);
}

.law-text h2 {
    margin: 0 0 5px;

    color: #e2bd78;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}

.law-text p {
    margin: 0;

    color: rgba(255, 255, 255, 0.94);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 300;
    line-height: 1.45;
}

/* Выход из аккаунта */

.logout-form {
    position: fixed;
    z-index: 3;

    top: 24px;
    right: 28px;

    margin: 0;
}

.logout-button {
    padding: 10px 18px;

    color: rgba(255, 255, 255, 0.9);
    background: rgba(14, 18, 24, 0.4);

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

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.logout-button:hover {
    background: rgba(14, 18, 24, 0.65);
    border-color: rgba(255, 255, 255, 0.55);
}

.logout-button:active {
    transform: translateY(1px);
}

/* Планшет и телефон */

@media (max-width: 760px) {
    .laws-layout {
        align-items: flex-start;

        padding:
            88px
            18px
            28px;
    }

    .laws-card {
        padding: 31px 22px 22px;
        border-radius: 17px;
    }

    .laws-emblem svg {
        width: 58px;
        height: 58px;
    }

    .laws-card > h1 {
        font-size: 38px;
    }

    .law-item {
        grid-template-columns: 40px 1fr;
        gap: 14px;

        padding: 18px 0;
    }

    .law-number {
        width: 38px;
        height: 38px;

        font-size: 19px;
    }

    .law-text h2 {
        font-size: 21px;
    }

    .law-text p {
        font-size: 17px;
    }

    .logout-form {
        top: 18px;
        right: 18px;
    }
}

@media (max-width: 430px) {
    .laws-background {
        background-position: 38% center;
    }

    .laws-card > h1 {
        font-size: 33px;
    }

    .law-item {
        align-items: start;
    }
}
