:root {
    --main-blue: #1d3557;
    --main-blue-dark: #0b2545;
    --accent-red: #d7263d;
    --light: #ffffff;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom right, #1d3557, #457b9d);
    background-attachment: fixed;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 20px;
    overflow: auto;
}

*, *::before, *::after {
    box-sizing: border-box;
}
/* Чешуйчатый фон с помощью SVG */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,\
				<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" fill="none" stroke="%23ffffff40">\
				  <path d="M0 50 Q50 0 100 50 Q50 100 0 50 Z" />\
				</svg>');
    opacity: 0.25; /* Сделали рисунок заметнее */
    background-size: 100px 100px;
    z-index: 0;
}

.logo {
    margin-top: 20px;
    max-width: 150px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.4));
    z-index: 1;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
    margin-top: 20px;
    border-top: 10px solid var(--accent-red);
    backdrop-filter: blur(5px);
    z-index: 1;
    position: relative;
}

h2 {
    text-align: center;
    color: var(--main-blue);
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--main-blue);
    font-weight: bold;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 16px;
}

button,
.button {
    background-color: var(--main-blue);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    margin-top: 22px;
}

input,
button,
.button {
    width: 100%;
    margin-bottom: 15px;
}

    button:hover,
    .button:hover {
        background-color: var(--main-blue-dark);
    }

    button:active,
    .button:active {
        background-color: var(--accent-red);
        transform: scale(0.98);
    }

    @media (max-width: 900px) {
        .centered-div {
            width: 90%;
        }
    }

    @media (max-width: 600px) {
        .form-container {
            padding: 16px;
        }

        input {
            font-size: 14px;
            padding: 10px;
            margin-bottom: 10px;
        }

        button,
        .button {
            font-size: 14px;
            padding: 10px;
        }

        h2 {
            font-size: 20px;
        }
    }

    @media (max-width: 480px) {
        .form-container {
            max-width: 100%;
            border-radius: 12px;
        }

        input {
            font-size: 10px;
            padding: 6px;
            margin-bottom: 6px;
        }

        .logo {
            max-width: 100px;
        }

        label {
            font-size: 14px;
        }
    }

    .centered-div {
        max-width: 700px;
        background-color: #f0f0f0;
        border-radius: 20px;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 100;
        padding: 20px;
    }

        .centered-div p {
            text-indent: 30px;
            text-align: justify;
            line-height: 1.5;
        }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99;
        width: 100%;
        height: 100%;
        background-color: #000;
        filter: alpha(opacity=50);
        opacity: 0.5;
    }

    .failureNotification {
        color: red;
        font-weight: bold;
    }

    .inline-div {
        display: inline-block;
        margin-right: 10px;
    }
