﻿@font-face {
    src: url('/fonts/SNPro-VariableFont_wght.woff2') format('woff2');
    font-family: 'SN Pro';
    font-weight: bold;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

:root {
    --dark-color: #000000;
    --light-gray-color: #999999;
    --dark-gray-color: #666666;
}

html {
    font-family: 'Comfortaa', sans-serif;
    background: url(/images/Background.png);
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    width: 100%;
}

.has-account {
    text-align: center;
    margin-top: -20px;
    padding-bottom: 10px;
}

a {
    color: var(--dark-gray-color);
}

    a:hover {
        color: var(--light-gray-color);
    }

#registration-link {
    color: black;
    font-weight: bold;
}

    #registration-link:hover {
        color: var(--dark-gray-color);
    }

.header-welcome-text {
    font-family: 'SN Pro', 'Comfortaa', sans-serif;
    font-size: 50px;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 5vh;
}

.main-section-form, .form {
    margin-top: 3vh;
}

.admin-row label {
    color: black;
    padding-bottom: 10px;
}

.form {
    border: 1px solid black;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 1000px;
    box-shadow: 15px 15px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border-color: var(--light-gray-color);
    overflow: visible;
}

.main-section-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

    .main-section-form > label,
    .main-section-form > input,
    .main-section-form > div,
    .main-section-form > ul {
        width: 100%;
        max-width: 500px;
    }

label {
    color: var(--dark-gray-color);
    align-self: flex-start;
    margin-bottom: 4px;
    padding-top: 5px;
}

.admin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
}

    .admin-row label {
        margin-bottom: 0;
        align-self: auto;
    }

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 13px;
        width: 13px;
        left: 6px;
        bottom: 6px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: black;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }

[type="password"], [type="text"], [type="email"] {
    max-width: 730px;
    min-width: 300px;
    width: 100%;
    height: 40px;
    margin-bottom: 2px;
    border-radius: 10px;
    border: 1px solid var(--light-gray-color);
    padding: 0 10px;
    background: transparent;
    font-size: 16px;
    line-height: 40px;
}

[type="submit"] {
    margin-top: 30px;
    border-radius: 10px;
    color: white;
    transition: .2s linear;
    background: black;
    border: none;
    min-width: 300px;
    height: 40px;
    cursor: pointer;
    font-size: 16px;
    padding: 0 30px;
    line-height: 40px;
}

    [type="submit"]:hover {
        box-shadow: 0 0 0 2px white, 0 0 0 4px black;
    }

.form-list-password {
    position: relative;
    margin-left: 0;
    list-style: circle;
    padding-left: 20px;
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 30px;
    max-width: 700px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-top: 30px;
    width: 100%;
    max-width: 500px;
}

[type="checkbox"] {
    margin-right: 10px;
    flex-shrink: 0;
}

.checkbox-user-data-computing {
    color: var(--dark-gray-color);
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
}

/* Ошибки */
.field-error {
    color: #990000;
    font-size: 12px;
    margin-top: 2px;
    margin-bottom: 12px;
    line-height: 1.5;
}

input.error-border {
    border-color: red !important;
    margin-bottom: 2px;
}

.checkbox-error {
    color: #990000;
    font-size: 12px;
    margin-top: 5px;
}

.error-summary {
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(153, 0, 0, 0.1);
    border-radius: 5px;
    width: 100%;
    max-width: 500px;
}

    .error-summary p {
        color: #990000;
        font-size: 12px;
        margin: 5px 0;
    }

.password-wrapper {
    position: relative;
    width: 100%;
}

    .password-wrapper input {
        padding: 0 40px 0 10px;
        margin-bottom: 0;
    }

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toggle-password:hover svg path,
    .toggle-password:hover svg circle {
        stroke: #990000;
    }

    .toggle-password:focus {
        outline: none;
    }

@media (max-width: 1024px) {
    .form {
        max-width: 90%;
        margin-top: 3vh;
    }
}

@media (max-width: 768px) {
    .header-welcome-text {
        font-size: 32px;
        line-height: 1.2;
    }

    .has-account {
        font-size: 14px;
    }

    .form {
        padding: 15px 20px;
        max-width: 95%;
        margin-top: 3vh;
    }

    [type="password"], [type="text"], [type="email"] {
        max-width: 100%;
        min-width: 0;
        font-size: 14px;
        height: 38px;
        line-height: 38px;
    }

    [type="submit"] {
        min-width: 200px;
        width: auto;
        height: 38px;
        line-height: 38px;
    }

    .form-list-password {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 8px;
    }
}

@media (max-width: 550px) {
    .form {
        padding: 15px !important;
        width: calc(100% - 20px) !important;
        max-width: none !important;
    }

    [type="password"],
    [type="text"],
    [type="email"] {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    [type="submit"] {
        min-width: 100% !important;
        width: 100% !important;
    }

    .form-list-password {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        padding-left: 15px !important;
    }

    .checkbox-user-data-computing {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .header-welcome-text {
        font-size: 24px;
        line-height: 1.3;
        margin-top: 3vh;
    }

    .has-account {
        font-size: 12px;
    }

    .main-section-form, .form {
        margin-top: 5vh;
    }

    .form {
        padding: 12px 15px;
    }

    [type="password"], [type="text"], [type="email"] {
        font-size: 13px;
        height: 36px;
        line-height: 36px;
    }

    [type="submit"] {
        font-size: 14px;
        height: 36px;
        line-height: 36px;
    }

    .form-list-password {
        font-size: 12px;
    }
}

@media (max-width: 375px) {
    .header-welcome-text {
        font-size: 20px;
    }

    .has-account {
        font-size: 11px;
    }

    .form {
        padding: 10px 12px;
    }

    [type="password"], [type="text"], [type="email"] {
        font-size: 12px;
        height: 34px;
        line-height: 34px;
    }

    [type="submit"] {
        font-size: 13px;
        height: 34px;
        line-height: 34px;
    }

    .form-list-password {
        font-size: 11px;
        padding-left: 15px;
    }

    .checkbox-user-data-computing {
        font-size: 10px;
    }
}

.field-error {
    color: #990000;
    font-size: 12px;
    margin-top: 2px;
    margin-bottom: 6px;
    line-height: 1.5;
}