﻿@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 {
    background: url(/images/Background.png);
    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: -15px;
    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;
}

.form {
    border: 1px solid black;
    border-radius: 10px;
    padding: 10px 20px;
    margin: 20px auto;
    width: 500px;
    max-width: 1500px;
    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: 600px;
    }

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

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

[type="submit"] {
    margin-top: 30px;
    border-radius: 10px;
    color: white;
    transition: .2s linear;
    background: black;
    border: none;
    min-width: 250px;
    width: auto;
    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;
    }

/* Ошибки */
.error-message {
    color: #990000;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 16px;
    line-height: 1.5;
    min-height: 18px;
}

    .error-message p {
        margin: 2px 0;
    }

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

.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 2px;
}

    .password-wrapper input {
        padding: 0 40px 0 15px;
        margin-bottom: 0;
        line-height: 45px;
    }

.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: 400px;
        width: 400px;
        padding: 15px 20px;
        margin-top: 3vh;
    }
}

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

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

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

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

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

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

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

@media (max-width: 550px) {
    .form {
        max-width: 300px;
        width: 400px;
        padding: 15px 20px;
        margin-top: 3vh;
    }

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

    [type="submit"] {
        min-width: 100%;
        width: 100%;
        height: 42px;
        line-height: 42px;
    }

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

    .checkbox-user-data-computing {
        display: inline-block;
        width: calc(100% - 30px);
        font-size: 11px;
    }

    .common-switch, [for="switch"] {
        float: right;
        margin-top: -40px;
    }

    [for="switch"] {
        margin-right: 70px;
    }
}

@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;
        margin-top: 3vh;
    }

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

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

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

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

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

    .form {
        padding: 10px 12px;
        margin-top: 3vh;
    }

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

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

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

    .checkbox-user-data-computing {
        font-size: 10px;
    }
}
.field-error {
    color: #990000;
    font-size: 12px;
    margin-top: 2px;
    margin-bottom: 2px;
    line-height: 1.5;
}