﻿@font-face {
    font-family: 'FontAwesome';
    src: url('/font/fontawesome-webfont.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: #f0f4f8; /* Спокойный базовый цвет */
}

/* Спокойный градиентный фон */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(145deg, #e6e9f0 0%, #dce1e8 100%);
}

.gradient-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(210, 218, 230, 0.4) 0%, transparent 30%), radial-gradient(circle at 90% 80%, rgba(190, 200, 218, 0.4) 0%, transparent 35%), linear-gradient(125deg, #c3d0e0 0%, #d5dee9 50%, #cbd3e1 100%);
    opacity: 0.6;
    animation: gentleShift 20s ease infinite alternate;
}

@keyframes gentleShift {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Контейнер для центрирования */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Карточка входа */
.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.03), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    animation: slideUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #4f6f8f 0%, #3a5a7a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 16px rgba(58, 90, 122, 0.15);
}

    .logo-icon i {
        font-size: 35px;
        color: white;
    }

.login-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.login-header p {
    color: #5a6f84;
    font-size: 14px;
    font-weight: 300;
}

/* Группы полей */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #8a9bb5;
    z-index: 1;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 14px 45px 14px 45px;
    border: 1px solid #d8e0e9;
    border-radius: 16px;
    font-size: 15px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
}

    .form-control::placeholder {
        color: #9aabbf;
        font-weight: 300;
    }

    .form-control:focus {
        border-color: #4f6f8f;
        outline: none;
        box-shadow: 0 0 0 4px rgba(79, 111, 143, 0.08);
        background: white;
    }

    .form-control.error {
        border-color: #e87a7a;
    }

/* Переключатель видимости пароля */
.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #8a9bb5;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    transition: color 0.3s;
}

    .password-toggle:hover {
        color: #4f6f8f;
    }

    .password-toggle:focus {
        outline: none;
    }

/* Подсказки об ошибках */
.error-hint {
    display: none;
    color: #e87a7a;
    font-size: 13px;
    margin-top: 6px;
    margin-left: 15px;
}

    .error-hint.show {
        display: block;
        animation: fadeIn 0.3s;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Опции формы */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* Кастомный чекбокс */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4a5f73;
    position: relative;
    padding-left: 28px;
}

    .checkbox-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
    }

.checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #cbd3e1;
    border-radius: 5px;
    transition: all 0.2s;
}

.checkbox-container:hover .checkmark {
    border-color: #4f6f8f;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #4f6f8f;
    border-color: #4f6f8f;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    margin-left: 5px;
}

/* Ссылка забыли пароль */
.forgot-password {
    color: #4f6f8f;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

    .forgot-password:hover {
        color: #2c3e50;
        text-decoration: underline;
    }

/* Счетчик попыток */
.attempts-counter {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff8e7;
    border: 1px solid #f5e6c6;
    border-radius: 16px;
}

    .attempts-counter span {
        display: block;
        margin-bottom: 8px;
        color: #8b6f4c;
        font-size: 13px;
    }

.progress-bar {
    width: 100%;
    height: 6px;
    background: #f0e2cc;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #e0a86b;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Кнопка входа */
.login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(145deg, #4f6f8f 0%, #3a5a7a 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(58, 90, 122, 0.2);
}

    .login-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(58, 90, 122, 0.25);
        background: linear-gradient(145deg, #577b9f 0%, #43688a 100%);
    }

    .login-button:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(58, 90, 122, 0.15);
    }

    .login-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.button-text, .button-loader {
    transition: all 0.3s;
}

.button-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Уведомления */
.alert-message {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: #fef5f5;
    border: 1px solid #f5d6d6;
    border-radius: 16px;
    color: #b15a5a;
    position: relative;
    animation: slideDown 0.3s;
}

    .alert-message i {
        font-size: 20px;
        margin-right: 12px;
        color: #e87a7a;
    }

.alert-text {
    flex: 1;
    font-size: 14px;
}

.alert-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #b15a5a;
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

    .alert-close:hover {
        opacity: 1;
    }

/* Блокировка аккаунта */
.lock-alert {
    display: flex;
    align-items: flex-start;
    padding: 18px;
    margin-bottom: 20px;
    background: #fef2f2;
    border: 1px solid #fbd5d5;
    border-radius: 16px;
    color: #b15a5a;
    animation: gentleShake 0.5s;
}

@keyframes gentleShake {
    0%, 100% {
        transform: translateX(0);
    }

    15%, 45%, 75% {
        transform: translateX(-3px);
    }

    30%, 60%, 90% {
        transform: translateX(3px);
    }
}

.lock-alert i {
    font-size: 24px;
    margin-right: 15px;
    color: #e87a7a;
}

.lock-content h4 {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 500;
    color: #8b4e4e;
}

.lock-content p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
    color: #b15a5a;
}

.timer {
    font-size: 22px;
    font-weight: 500;
    font-family: monospace;
    color: #8b4e4e;
}

/* Футер */
.login-footer {
    text-align: center;
    margin-top: 30px;
    color: #7e92a8;
    font-size: 13px;
    font-weight: 300;
    padding-top: 15px;
    border-top: 1px solid rgba(203, 211, 225, 0.5);
}

/* Адаптивность */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
    }

        .logo-icon i {
            font-size: 28px;
        }

    .timer {
        font-size: 20px;
    }
}








/*@font-face {
    font-family: FontAwesome;
    src: url('/font/fontawesome-webfont.ttf');
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    border: 0;
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, html {
    display: block;
}

body {
}


.login-box {
    width: 380px;
    margin: 7% auto;
    color: rgba(0, 0, 0, 0.8);
}

.login-logo {
    font-family: "h3";
    font-size: 35px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 300;
}

.login-box-body {
    background: #fff;
    padding: 20px;
    border-top: 0;
    color: #666;
}

.login-form {
    display: block;
    font-size: 35px;
    text-align: center;
    margin-bottom: 15px;
}

.form-group {
    position: relative;
    padding-top: 10px;
}

    .form-group h3 {
        margin: 1em 0 0.2em 0;
        color: rgba(0, 0, 0, 0.7);
    }

    .form-group select {*/
        /*margin-top: 1em;*/
    /*}

    .form-group textarea {*/
        /*margin-top: 1em;*/
    /*}


.form-control:not(select) {
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-control {
    border-radius: 0;
    box-shadow: none;
    border: 1px solid rgba(204,198,197,.5);
    padding: 5px 10px 5px 10px;
    width: 80%;
    font-size: 18px
}

.form-group b {
    padding-top: 10px;
    font: normal normal normal 18px/1 FontAwesome;
    position: absolute;
    top: 5px;
    right: 32px;
    display: block;
    color: #555;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    pointer-events: none;
    font-size: 18px
}

.log::before {
    content: "\f007";
}

.pass::before {
    content: "\f023";
}


.alert {
    margin: 0 auto;
    display: block;
    padding: 15px 10px 15px 10px;
    background-color: #DD4B39;
    color: white !important;
    font-size: 14px;
    width: 80%;
    border-radius: 2px;
}

    .alert .alert_baner i {
        display: inline-block;
        font: normal normal normal 14px/1 FontAwesome;
        font-size: inherit;
        text-rendering: auto;
        -webkit-font-smoothing: antialiased;
    }

        .alert .alert_baner i:before {
            content: "\f05e";
        }

    .alert .alert_baner {
        display: block;
        font-size: 24px;
        text-align: left;
    }

    .alert .alert_text {
        margin-top: 10px;
        display: block;
        font-size: 16px;
        text-align: left;
    }

    .alert .alert_close {
        float: right;
        cursor: pointer;
        background: 0 0;
        border: 0;
        font-size: 21px;
        font-weight: 700;
        color: white;
        top: -15px;
        right: -21px;
    }

        .alert .alert_close:hover {
            color: #ccc;
        }

        .alert .alert_close:active {
            outline: none;*/
            /*border: none;*/
        /*}

        .alert .alert_close:focus {
            outline: none;*/
            /*border: none;*/
        /*}

        .alert .alert_close::-moz-focus-inner {
            text-decoration: none;
            outline: none;*/
            /*border: none;*/
            /*box-shadow: none;
        }


.login-form .form-send {
    margin: 2em 0;
    padding: 5px 15px 5px 15px;
    background-image: -webkit-linear-gradient(top, #f4f1ee, #fff);
    background-image: linear-gradient(top, #f4f1ee, #fff);
    border-radius: 5px;
    border: 1px solid rgba(204,198,197,.5);*/
    /*box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, .3), inset 0px 2px 1px 1px white, inset 0px -2px 1px 1px rgba(204,198,197,.5);*/
    /*font-size: 18px;
}

    .login-form .form-send:hover {
        background-image: -webkit-linear-gradient(top, #fff, #f4f1ee);
        background-image: linear-gradient(top, #fff, #f4f1ee);
    }


.red {
    border: #DD4B39 1px solid;
}

.some_hint {
    margin: 0 auto;
    display: block;*/
    /*display: none;*/
    /*padding: 3px 5px 3px 5px;
    background-color: #DD4B39;
    color: white;
    font-size: 14px;
}

.some_hint_80 {
    margin: 0 auto;
    display: block;*/
    /*display: none;*/
    /*padding: 3px 5px 3px 5px;
    background-color: #DD4B39;
    color: white;
    font-size: 14px;
    width: 80%;
}*/
