/* login.css версия 1.0.2 от 26.12.2025 - улучшена контрастность галочки чекбокса */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(180deg, #2B2B2B 0%, #1A1A1A 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
}

.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.logo-img {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    display: block;
}

.logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #2196F3 0%, #4CAF50 50%, #FFC107 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 108px;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #2B2B2B;
    letter-spacing: 2px;
}

.title {
    font-size: 28px;
    font-weight: 500;
    color: #2B2B2B;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999999;
    pointer-events: none;
    transition: color 0.3s;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 48px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    background: #FFFFFF;
    transition: all 0.3s;
    font-family: 'Roboto', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #579D00;
    box-shadow: 0 0 0 3px rgba(87, 157, 0, 0.1);
}

.form-input:focus + .input-icon {
    color: #579D00;
}

.form-input::placeholder {
    color: #999999;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: #579D00;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    justify-content: space-between;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    background: #F5F5F5;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
}

.custom-checkbox:has(input:checked),
.custom-checkbox.checked {
    background: #579D00;
    border-color: #579D00;
}

.custom-checkbox input:checked ~ .checkmark {
    display: block;
}

.checkmark {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid #FFFFFF;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.checkbox-label {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    cursor: pointer;
}

.forgot-password {
    font-size: 14px;
    font-weight: 400;
    color: #579D00;
    text-decoration: none;
    transition: all 0.3s;
}

.forgot-password:hover {
    color: #5DA800;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    height: 48px;
    background: #579D00;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
}

.btn-login:hover {
    background: #5DA800;
}

.btn-login:active {
    transform: scale(0.98);
    background: #4A8A00;
}

.btn-login:disabled {
    background: #CCCCCC;
    color: #999999;
    cursor: not-allowed;
}

.error-message {
    background: #FFEBEE;
    border: 1px solid #E53935;
    color: #C62828;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.error-message.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.version-info {
    text-align: center;
    font-size: 12px;
    color: #999999;
    margin-top: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .login-form {
        padding: 30px;
    }

    .logo, .logo-img {
        width: 150px;
        height: 70px;
    }

    .logo {
        font-size: 90px;
    }

    .title {
        font-size: 24px;
    }

    .form-input {
        height: 44px;
    }

    .btn-login {
        height: 44px;
    }
}

/* Иконки SVG */
.icon-user,
.icon-lock,
.icon-eye,
.icon-eye-off {
    fill: currentColor;
}

