/* Стили страницы логина - вынесены из inline CSS для улучшения производительности */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background-color: #1a1a1a;
    border: 1px solid #35de6d;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(53, 222, 109, 0.1);
    animation: fadeIn 0.5s ease-in;
    /* Оптимизация анимации для GPU */
    will-change: opacity, transform;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box:hover {
    /* Убираем will-change после загрузки для экономии памяти */
    will-change: auto;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.welcome-title {
    margin-bottom: 10px;
    font-size: 1.5em;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
}

.login-subtitle {
    margin-bottom: 30px;
    text-align: center;
    color: #35de6d;
    font-size: 1.1em;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-size: 0.95em;
}

.form-input {
    padding: 12px 16px;
    font-size: 1em;
    background-color: #0d0d0d;
    border: 1px solid #333;
    border-radius: 10px;
    outline: none;
    color: #ffffff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    border-color: #35de6d;
    box-shadow: 0 0 0 2px rgba(53, 222, 109, 0.2);
}

.form-check {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #35de6d;
}

.form-check-label {
    color: #e0e0e0;
    cursor: pointer;
    font-size: 0.95em;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85em;
    margin-top: 5px;
}

.login-button {
    background: linear-gradient(135deg, #35de6d 0%, #2ab85a 100%);
    color: #0d0d0d;
    padding: 14px 20px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    /* GPU оптимизация для transform */
    will-change: transform;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(53, 222, 109, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.alert-danger {
    background-color: rgba(255, 107, 107, 0.15);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    font-size: 1.05em;
    font-weight: 500;
    text-align: center;
}

.register-link {
    color: #35de6d;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s;
}

.register-link:hover {
    color: #2ab85a;
    text-decoration: underline;
}

.forgot-password-link {
    color: #35de6d;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.forgot-password-link:hover {
    color: #2ab85a;
    text-decoration: underline;
}

.text-center {
    text-align: center;
}
