﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px); /* Учитываем высоту header и footer */
    flex-direction: column;
}

.loading-min {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: login-spinner 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 8px;   /* отступ от текста */
}
.btn.loading {
    position: relative;
    pointer-events: none;
}
@keyframes login-spinner {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.btn {
    width: 100%;
    background: #1a3a5f;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

    .btn:hover {
        background: #0f2741;
    }

.links {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

    .links a {
        color: #1a3a5f;
        text-decoration: none;
        margin: 0 10px;
        font-size: 14px;
    }

        .links a:hover {
            text-decoration: underline;
        }
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card {
        padding: 25px 20px;
        margin: 10px 0;
    }

    .header h1 {
        font-size: 22px;
    }
}

@media (max-height: 700px) {
    .container {
        align-items: flex-start;
        padding-top: 30px;
    }

    .card {
        margin: 20px 0;
    }
}

@media (max-height: 600px) {
    .container {
        padding-top: 20px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .header {
        margin-bottom: 20px;
    }
}
/*#region HEADER*/
.logo-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}
    .logo-container .logo-img {
        height: 40px;
        width: 200px;
        background-image: url(/img/logo_big.svg);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }
    .logo-container .logo-text {
        text-transform: uppercase;
        font-size: 26px;
    }

.header {
    margin-bottom: 25px;
    text-align: center;
}
        .header h1 {
            font-size: 33px;
            color: #1a3a5f;
            margin-bottom: 10px;
        }

    .header p {
        color: #666;
        font-size: 14px;
    }
/*#endregion*/

/*#region FORM*/
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    padding: 30px;
    width: 100%;
    max-width: 450px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #1a3a5f;
    margin-bottom: 30px;
}

    .logo span {
        color: #d4af37;
    }

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #555;
        font-weight: 500;
    }

    .form-group input:not([type=checkbox]) {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 6px;
        font-size: 16px;
        transition: all 0.3s;
    }

    .form-group input:focus {
        border-color: #1a3a5f;
        outline: none;
        box-shadow: 0 0 0 3px rgba(26, 58, 95, 0.1);
    }

.back-to-site {
    margin-top: 20px;
}

    .back-to-site a {
        color: #666;
        text-decoration: none;
        font-size: 14px;
    }

.show-pass {
    float: left;
    background-image: url(/img/password-show.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    height: 38px;
    width: 30px;
    opacity: 0.4;
    margin-left: -40px;
}

    .show-pass:hover {
        opacity: 1;
    }

    .show-pass.show {
        background-image: url(/img/password-hide.svg);
        opacity: 1;
    }

.alert {
    color: red;
    text-align: right;
    font-size: 16px;
}

.success {
    color: var(--color-green-dark);
    text-align: center;
    font-size: 16px;
}

.info {
    font-size: 16px;
    color: dodgerblue;
}
/*#endregion*/

/*#region FOOTER*/
footer {
    background: #0f2741;
    color: white;
    padding: 20px 0;
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 10px;
}

    .footer-links a {
        color: #ccc;
        text-decoration: none;
        font-size: 13px;
        margin: 0 10px;
    }

        .footer-links a:hover {
            color: white;
        }

.copyright {
    color: #aaa;
    font-size: 12px;
}
/*#endregion*/